Class: AWSCDK::StepFunctionsTasks::TransformDataSource
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::TransformDataSource
- Defined in:
- step_functions_tasks/transform_data_source.rb
Overview
S3 location of the input data that the model can consume.
Instance Attribute Summary collapse
-
#s3_data_source ⇒ AWSCDK::StepFunctionsTasks::TransformS3DataSource
readonly
S3 location of the input data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_data_source:) ⇒ TransformDataSource
constructor
A new instance of TransformDataSource.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_data_source:) ⇒ TransformDataSource
Returns a new instance of TransformDataSource.
8 9 10 11 |
# File 'step_functions_tasks/transform_data_source.rb', line 8 def initialize(s3_data_source:) @s3_data_source = s3_data_source.is_a?(Hash) ? ::AWSCDK::StepFunctionsTasks::TransformS3DataSource.new(**s3_data_source.transform_keys(&:to_sym)) : s3_data_source Jsii::Type.check_type(@s3_data_source, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5UcmFuc2Zvcm1TM0RhdGFTb3VyY2UifQ==")), "s3DataSource") end |
Instance Attribute Details
#s3_data_source ⇒ AWSCDK::StepFunctionsTasks::TransformS3DataSource (readonly)
S3 location of the input data.
16 17 18 |
# File 'step_functions_tasks/transform_data_source.rb', line 16 def s3_data_source @s3_data_source end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'step_functions_tasks/transform_data_source.rb', line 18 def self.jsii_properties { :s3_data_source => "s3DataSource", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'step_functions_tasks/transform_data_source.rb', line 24 def to_jsii result = {} result.merge!({ "s3DataSource" => @s3_data_source, }) result.compact end |