Class: AWSCDK::StepFunctionsTasks::ShuffleConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/shuffle_config.rb

Overview

Configuration for a shuffle option for input data in a channel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(seed:) ⇒ ShuffleConfig

Returns a new instance of ShuffleConfig.

Parameters:

  • seed (Numeric)

    Determines the shuffling order.



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

#seedNumeric (readonly)

Determines the shuffling order.

Returns:

  • (Numeric)


16
17
18
# File 'step_functions_tasks/shuffle_config.rb', line 16

def seed
  @seed
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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