Class: AWSCDK::Sagemaker::CfnModelPackage::ModelDataSourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnModelPackage::ModelDataSourceProperty
- Defined in:
- sagemaker/cfn_model_package.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, ...
readonly
Specifies the S3 location of ML model data to deploy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_data_source: nil) ⇒ ModelDataSourceProperty
constructor
A new instance of ModelDataSourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_data_source: nil) ⇒ ModelDataSourceProperty
Returns a new instance of ModelDataSourceProperty.
1747 1748 1749 1750 |
# File 'sagemaker/cfn_model_package.rb', line 1747 def initialize(s3_data_source: nil) @s3_data_source = s3_data_source.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::S3ModelDataSourceProperty.new(**s3_data_source.transform_keys(&:to_sym)) : s3_data_source Jsii::Type.check_type(@s3_data_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLlMzTW9kZWxEYXRhU291cmNlUHJvcGVydHkifV19fQ==")), "s3DataSource") unless @s3_data_source.nil? end |
Instance Attribute Details
#s3_data_source ⇒ AWSCDK::IResolvable, ... (readonly)
Specifies the S3 location of ML model data to deploy.
1756 1757 1758 |
# File 'sagemaker/cfn_model_package.rb', line 1756 def s3_data_source @s3_data_source end |
Class Method Details
.jsii_properties ⇒ Object
1758 1759 1760 1761 1762 |
# File 'sagemaker/cfn_model_package.rb', line 1758 def self.jsii_properties { :s3_data_source => "s3DataSource", } end |
Instance Method Details
#to_jsii ⇒ Object
1764 1765 1766 1767 1768 1769 1770 |
# File 'sagemaker/cfn_model_package.rb', line 1764 def to_jsii result = {} result.merge!({ "s3DataSource" => @s3_data_source, }) result.compact end |