Class: AWSCDK::StepFunctions::AfterwardsOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctions::AfterwardsOptions
- Defined in:
- step_functions/afterwards_options.rb
Overview
Options for selecting the choice paths.
Instance Attribute Summary collapse
-
#include_error_handlers ⇒ Boolean?
readonly
Whether to include error handling states.
-
#include_otherwise ⇒ Boolean?
readonly
Whether to include the default/otherwise transition for the current Choice state.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(include_error_handlers: nil, include_otherwise: nil) ⇒ AfterwardsOptions
constructor
A new instance of AfterwardsOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(include_error_handlers: nil, include_otherwise: nil) ⇒ AfterwardsOptions
Returns a new instance of AfterwardsOptions.
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_handlers ⇒ Boolean? (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.
23 24 25 |
# File 'step_functions/afterwards_options.rb', line 23 def include_error_handlers @include_error_handlers end |
#include_otherwise ⇒ Boolean? (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.
31 32 33 |
# File 'step_functions/afterwards_options.rb', line 31 def include_otherwise @include_otherwise end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |