Class: AWSCDK::Sagemaker::CfnProcessingJob::ProcessingInputsObjectProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnProcessingJob::ProcessingInputsObjectProperty
- Defined in:
- sagemaker/cfn_processing_job.rb
Overview
The inputs for a processing job.
The processing input must specify exactly one of either S3Input or DatasetDefinition types.
Instance Attribute Summary collapse
-
#app_managed ⇒ Boolean, ...
readonly
When
True, input operations such as data download are managed natively by the processing job application. -
#dataset_definition ⇒ AWSCDK::IResolvable, ...
readonly
Configuration for Dataset Definition inputs.
-
#input_name ⇒ String
readonly
The name for the processing job input.
-
#s3_input ⇒ AWSCDK::IResolvable, ...
readonly
Configuration for downloading input data from Amazon S3 into the processing container.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(input_name:, app_managed: nil, dataset_definition: nil, s3_input: nil) ⇒ ProcessingInputsObjectProperty
constructor
A new instance of ProcessingInputsObjectProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(input_name:, app_managed: nil, dataset_definition: nil, s3_input: nil) ⇒ ProcessingInputsObjectProperty
Returns a new instance of ProcessingInputsObjectProperty.
1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 |
# File 'sagemaker/cfn_processing_job.rb', line 1218 def initialize(input_name:, app_managed: nil, dataset_definition: nil, s3_input: nil) @input_name = input_name Jsii::Type.check_type(@input_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inputName") @app_managed = app_managed Jsii::Type.check_type(@app_managed, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "appManaged") unless @app_managed.nil? @dataset_definition = dataset_definition.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnProcessingJob::DatasetDefinitionProperty.new(**dataset_definition.transform_keys(&:to_sym)) : dataset_definition Jsii::Type.check_type(@dataset_definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuUHJvY2Vzc2luZ0pvYi5EYXRhc2V0RGVmaW5pdGlvblByb3BlcnR5In1dfX0=")), "datasetDefinition") unless @dataset_definition.nil? @s3_input = s3_input.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnProcessingJob::S3InputProperty.new(**s3_input.transform_keys(&:to_sym)) : s3_input Jsii::Type.check_type(@s3_input, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuUHJvY2Vzc2luZ0pvYi5TM0lucHV0UHJvcGVydHkifV19fQ==")), "s3Input") unless @s3_input.nil? end |
Instance Attribute Details
#app_managed ⇒ Boolean, ... (readonly)
When True , input operations such as data download are managed natively by the processing job application.
When False (default), input operations are managed by Amazon SageMaker.
1240 1241 1242 |
# File 'sagemaker/cfn_processing_job.rb', line 1240 def app_managed @app_managed end |
#dataset_definition ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration for Dataset Definition inputs.
The Dataset Definition input must specify exactly one of either AthenaDatasetDefinition or RedshiftDatasetDefinition types.
1247 1248 1249 |
# File 'sagemaker/cfn_processing_job.rb', line 1247 def dataset_definition @dataset_definition end |
#input_name ⇒ String (readonly)
The name for the processing job input.
1233 1234 1235 |
# File 'sagemaker/cfn_processing_job.rb', line 1233 def input_name @input_name end |
#s3_input ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration for downloading input data from Amazon S3 into the processing container.
1252 1253 1254 |
# File 'sagemaker/cfn_processing_job.rb', line 1252 def s3_input @s3_input end |
Class Method Details
.jsii_properties ⇒ Object
1254 1255 1256 1257 1258 1259 1260 1261 |
# File 'sagemaker/cfn_processing_job.rb', line 1254 def self.jsii_properties { :input_name => "inputName", :app_managed => "appManaged", :dataset_definition => "datasetDefinition", :s3_input => "s3Input", } end |
Instance Method Details
#to_jsii ⇒ Object
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 |
# File 'sagemaker/cfn_processing_job.rb', line 1263 def to_jsii result = {} result.merge!({ "inputName" => @input_name, "appManaged" => @app_managed, "datasetDefinition" => @dataset_definition, "s3Input" => @s3_input, }) result.compact end |