Class: AWSCDK::StepFunctionsTasks::ShuffleConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::ShuffleConfig
- Defined in:
- step_functions_tasks/shuffle_config.rb
Overview
Configuration for a shuffle option for input data in a channel.
Instance Attribute Summary collapse
-
#seed ⇒ Numeric
readonly
Determines the shuffling order.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(seed:) ⇒ ShuffleConfig
constructor
A new instance of ShuffleConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(seed:) ⇒ ShuffleConfig
Returns a new instance of ShuffleConfig.
8 9 10 11 |
# File 'step_functions_tasks/shuffle_config.rb', line 8 def initialize(seed:) @seed = seed Jsii::Type.check_type(@seed, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "seed") end |
Instance Attribute Details
#seed ⇒ Numeric (readonly)
Determines the shuffling order.
16 17 18 |
# File 'step_functions_tasks/shuffle_config.rb', line 16 def seed @seed end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'step_functions_tasks/shuffle_config.rb', line 18 def self.jsii_properties { :seed => "seed", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'step_functions_tasks/shuffle_config.rb', line 24 def to_jsii result = {} result.merge!({ "seed" => @seed, }) result.compact end |