Class: AWSCDK::StepFunctions::ProcessorConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions/processor_config.rb

Overview

Specifies the configuration for the processor Map state.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(execution_type: nil, mode: nil) ⇒ ProcessorConfig

Returns a new instance of ProcessorConfig.

Parameters:



9
10
11
12
13
14
# File 'step_functions/processor_config.rb', line 9

def initialize(execution_type: nil, mode: nil)
  @execution_type = execution_type
  Jsii::Type.check_type(@execution_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5Qcm9jZXNzb3JUeXBlIn0=")), "executionType") unless @execution_type.nil?
  @mode = mode
  Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5Qcm9jZXNzb3JNb2RlIn0=")), "mode") unless @mode.nil?
end

Instance Attribute Details

#execution_typeAWSCDK::StepFunctions::ProcessorType? (readonly)

Note:

Default: - no execution type

Specifies the execution type for the Map workflow.

If you use the Map class, you must provide this field if you specified DISTRIBUTED for the mode sub-field.

If you use the DistributedMap class, this property is ignored. Use the map_execution_type in the DistributedMap class instead.



25
26
27
# File 'step_functions/processor_config.rb', line 25

def execution_type
  @execution_type
end

#modeAWSCDK::StepFunctions::ProcessorMode? (readonly)

Note:

Default: - ProcessorMode.INLINE if using the Map class, ProcessorMode.DISTRIBUTED if using the DistributedMap class

Specifies the execution mode for the Map workflow.



30
31
32
# File 'step_functions/processor_config.rb', line 30

def mode
  @mode
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
# File 'step_functions/processor_config.rb', line 32

def self.jsii_properties
  {
    :execution_type => "executionType",
    :mode => "mode",
  }
end

Instance Method Details

#to_jsiiObject



39
40
41
42
43
44
45
46
# File 'step_functions/processor_config.rb', line 39

def to_jsii
  result = {}
  result.merge!({
    "executionType" => @execution_type,
    "mode" => @mode,
  })
  result.compact
end