Class: AWSCDK::Sagemaker::CfnModelPackage::DataSourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_model_package.rb

Overview

Describes the location of the channel data.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_data_source:) ⇒ DataSourceProperty

Returns a new instance of DataSourceProperty.

Parameters:



1055
1056
1057
1058
# File 'sagemaker/cfn_model_package.rb', line 1055

def initialize(s3_data_source:)
  @s3_data_source = s3_data_source.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnModelPackage::S3DataSourceProperty.new(**s3_data_source.transform_keys(&:to_sym)) : s3_data_source
  Jsii::Type.check_type(@s3_data_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuTW9kZWxQYWNrYWdlLlMzRGF0YVNvdXJjZVByb3BlcnR5In1dfX0=")), "s3DataSource")
end

Instance Attribute Details

#s3_data_sourceAWSCDK::IResolvable, AWSCDK::Sagemaker::CfnModelPackage::S3DataSourceProperty (readonly)

The S3 location of the data source that is associated with a channel.



1064
1065
1066
# File 'sagemaker/cfn_model_package.rb', line 1064

def s3_data_source
  @s3_data_source
end

Class Method Details

.jsii_propertiesObject



1066
1067
1068
1069
1070
# File 'sagemaker/cfn_model_package.rb', line 1066

def self.jsii_properties
  {
    :s3_data_source => "s3DataSource",
  }
end

Instance Method Details

#to_jsiiObject



1072
1073
1074
1075
1076
1077
1078
# File 'sagemaker/cfn_model_package.rb', line 1072

def to_jsii
  result = {}
  result.merge!({
    "s3DataSource" => @s3_data_source,
  })
  result.compact
end