Class: AWSCDK::Sagemaker::CfnModel::ModelDataSourceProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_data_source:) ⇒ ModelDataSourceProperty

Returns a new instance of ModelDataSourceProperty.

Parameters:



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



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_jsiiObject



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