Class: AWSCDK::Sagemaker::CfnModel::ModelDataSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModel::ModelDataSourceProperty
- Defined in:
- sagemaker/cfn_model.rb
Overview
Specifies the location of ML model data to deploy.
If specified, you must specify one and only one of the available data sources.
Instance Attribute Summary collapse
-
#s3_data_source ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModel::S3DataSourceProperty
readonly
Specifies the S3 location of ML model data to deploy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_data_source:) ⇒ ModelDataSourceProperty
constructor
A new instance of ModelDataSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_data_source:) ⇒ ModelDataSourceProperty
Returns a new instance of ModelDataSourceProperty.
929 930 931 932 |
# File 'sagemaker/cfn_model.rb', line 929 def initialize(s3_data_source:) @s3_data_source = s3_data_source.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModel::S3DataSourceProperty.new(**s3_data_source.transform_keys(&:to_sym)) : s3_data_source Jsii::Type.check_type(@s3_data_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWwuUzNEYXRhU291cmNlUHJvcGVydHkifV19fQ==")), "s3DataSource") end |
Instance Attribute Details
#s3_data_source ⇒ AWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModel::S3DataSourceProperty (readonly)
Specifies the S3 location of ML model data to deploy.
938 939 940 |
# File 'sagemaker/cfn_model.rb', line 938 def s3_data_source @s3_data_source end |
Class Method Details
.jsii_properties ⇒ Object
940 941 942 943 944 |
# File 'sagemaker/cfn_model.rb', line 940 def self.jsii_properties { :s3_data_source => "s3DataSource", } end |
Instance Method Details
#to_jsii ⇒ Object
946 947 948 949 950 951 952 |
# File 'sagemaker/cfn_model.rb', line 946 def to_jsii result = {} result.merge!({ "s3DataSource" => @s3_data_source, }) result.compact end |