Class: AWSCDK::Sagemaker::CfnModelPackage::ModelDataSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_data_source: nil) ⇒ ModelDataSourceProperty

Returns a new instance of ModelDataSourceProperty.

Parameters:



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_sourceAWSCDK::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_propertiesObject



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_jsiiObject



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