Class: AWSCDK::StepFunctions::AfterwardsOptions

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

Overview

Options for selecting the choice paths.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(include_error_handlers: nil, include_otherwise: nil) ⇒ AfterwardsOptions

Returns a new instance of AfterwardsOptions.

Parameters:

  • include_error_handlers (Boolean, nil) (defaults to: nil)

    Whether to include error handling states.

  • include_otherwise (Boolean, nil) (defaults to: nil)

    Whether to include the default/otherwise transition for the current Choice state.



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

def initialize(include_error_handlers: nil, include_otherwise: nil)
  @include_error_handlers = include_error_handlers
  Jsii::Type.check_type(@include_error_handlers, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "includeErrorHandlers") unless @include_error_handlers.nil?
  @include_otherwise = include_otherwise
  Jsii::Type.check_type(@include_otherwise, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "includeOtherwise") unless @include_otherwise.nil?
end

Instance Attribute Details

#include_error_handlersBoolean? (readonly)

Note:

Default: false

Whether to include error handling states.

If this is true, all states which are error handlers (added through 'onError') and states reachable via error handlers will be included as well.

Returns:

  • (Boolean, nil)


23
24
25
# File 'step_functions/afterwards_options.rb', line 23

def include_error_handlers
  @include_error_handlers
end

#include_otherwiseBoolean? (readonly)

Note:

Default: false

Whether to include the default/otherwise transition for the current Choice state.

If this is true and the current Choice does not have a default outgoing transition, one will be added included when .next() is called on the chain.

Returns:

  • (Boolean, nil)


31
32
33
# File 'step_functions/afterwards_options.rb', line 31

def include_otherwise
  @include_otherwise
end

Class Method Details

.jsii_propertiesObject



33
34
35
36
37
38
# File 'step_functions/afterwards_options.rb', line 33

def self.jsii_properties
  {
    :include_error_handlers => "includeErrorHandlers",
    :include_otherwise => "includeOtherwise",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "includeErrorHandlers" => @include_error_handlers,
    "includeOtherwise" => @include_otherwise,
  })
  result.compact
end