Class: AWSCDK::StepFunctions::State
- Inherits:
-
Constructs::Construct
- Object
- Constructs::Construct
- AWSCDK::StepFunctions::State
- Includes:
- IChainable
- Defined in:
- step_functions/state.rb
Overview
Base class for all other state classes.
Direct Known Subclasses
Choice, CustomState, Fail, MapBase, Parallel, Pass, Succeed, TaskStateBase, Wait
Class Method Summary collapse
-
.filter_nextables(states) ⇒ Array<AWSCDK::StepFunctions::INextable>
Return only the states that allow chaining from an array of states.
-
.find_reachable_end_states(start, options = nil) ⇒ Array<AWSCDK::StepFunctions::State>
Find the set of end states states reachable through transitions from the given start state.
-
.find_reachable_states(start, options = nil) ⇒ Array<AWSCDK::StepFunctions::State>
Find the set of states reachable through transitions from the given start state.
- .jsii_overridable_methods ⇒ Object
-
.prefix_states(root, prefix) ⇒ void
Add a prefix to the stateId of all States found in a construct tree.
Instance Method Summary collapse
-
#add_branch(branch) ⇒ void
Add a parallel branch to this state.
-
#add_choice(condition, _next, options = nil) ⇒ void
Add a choice branch to this state.
-
#add_item_processor(processor, config = nil) ⇒ void
Add a item processor to this state.
-
#add_iterator(iteration) ⇒ void
Add a map iterator to this state.
-
#add_prefix(x) ⇒ void
Add a prefix to the stateId of this state.
- #arguments ⇒ Hash?
- #assign ⇒ Hash?
-
#bind_to_graph(graph) ⇒ void
Register this state as part of the given graph.
- #branches ⇒ Array<AWSCDK::StepFunctions::StateGraph>
- #comment ⇒ String?
- #default_choice ⇒ AWSCDK::StepFunctions::State?
- #default_choice=(value) ⇒ Object
-
#end_states ⇒ Array<AWSCDK::StepFunctions::INextable>
Continuable states of this Chainable.
-
#id ⇒ String
Descriptive identifier for this chainable.
-
#initialize(scope, id, props) ⇒ State
constructor
A new instance of State.
- #input_path ⇒ String?
- #iteration ⇒ AWSCDK::StepFunctions::StateGraph?
- #iteration=(value) ⇒ Object
-
#make_default(_def) ⇒ void
Make the indicated state the default choice transition of this state.
-
#make_next(_next) ⇒ void
Make the indicated state the default transition of this state.
-
#node ⇒ Constructs::Node
The tree node.
- #output_path ⇒ String?
- #outputs ⇒ Hash?
- #parameters ⇒ Hash?
- #processor ⇒ AWSCDK::StepFunctions::StateGraph?
- #processor=(value) ⇒ Object
- #processor_config ⇒ AWSCDK::StepFunctions::ProcessorConfig?
- #processor_config=(value) ⇒ Object
- #processor_mode ⇒ AWSCDK::StepFunctions::ProcessorMode?
- #processor_mode=(value) ⇒ Object
- #query_language ⇒ AWSCDK::StepFunctions::QueryLanguage?
-
#render_assign(top_level_query_language = nil) ⇒ Object
Render the assign in ASL JSON format.
-
#render_branches ⇒ Object
Render parallel branches in ASL JSON format.
-
#render_choices(top_level_query_language = nil) ⇒ Object
Render the choices in ASL JSON format.
-
#render_input_output ⇒ Object
Render InputPath/Parameters/OutputPath/Arguments/Output in ASL JSON format.
-
#render_item_processor ⇒ Object
Render ItemProcessor in ASL JSON format.
-
#render_iterator ⇒ Object
Render map iterator in ASL JSON format.
-
#render_next_end ⇒ Object
Render the default next state in ASL JSON format.
-
#render_query_language(top_level_query_language = nil) ⇒ Object
Render QueryLanguage in ASL JSON format if needed.
-
#render_result_selector ⇒ Object
Render ResultSelector in ASL JSON format.
-
#render_retry_catch(top_level_query_language = nil) ⇒ Object
Render error recovery options in ASL JSON format.
- #result_path ⇒ String?
- #result_selector ⇒ Hash?
-
#start_state ⇒ AWSCDK::StepFunctions::State
First state of this Chainable.
-
#state_id ⇒ String
Tokenized string that evaluates to the state's ID.
- #state_name ⇒ String?
-
#to_state_json(state_machine_query_language = nil) ⇒ Hash
Render the state as JSON.
-
#to_string ⇒ String
Returns a string representation of this construct.
-
#validate_state ⇒ Array<String>
Allows the state to validate itself.
-
#when_bound_to_graph(graph) ⇒ void
Called whenever this state is bound to a graph.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Constructor Details
#initialize(scope, id, props) ⇒ State
Returns a new instance of State.
12 13 14 15 16 17 18 |
# File 'step_functions/state.rb', line 12 def initialize(scope, id, props) props = props.is_a?(Hash) ? ::AWSCDK::StepFunctions::StateProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope") Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZVByb3BzIn0=")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props) end |
Class Method Details
.filter_nextables(states) ⇒ Array<AWSCDK::StepFunctions::INextable>
Return only the states that allow chaining from an array of states.
74 75 76 77 |
# File 'step_functions/state.rb', line 74 def self.filter_nextables(states) Jsii::Type.check_type(states, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zdGVwZnVuY3Rpb25zLlN0YXRlIn0sImtpbmQiOiJhcnJheSJ9fQ==")), "states") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.State", "filterNextables", [states]) end |
.find_reachable_end_states(start, options = nil) ⇒ Array<AWSCDK::StepFunctions::State>
Find the set of end states states reachable through transitions from the given start state.
84 85 86 87 88 89 |
# File 'step_functions/state.rb', line 84 def self.find_reachable_end_states(start, = nil) Jsii::Type.check_type(start, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZSJ9")), "start") = .is_a?(Hash) ? ::AWSCDK::StepFunctions::FindStateOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5GaW5kU3RhdGVPcHRpb25zIn0=")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.State", "findReachableEndStates", [start, ]) end |
.find_reachable_states(start, options = nil) ⇒ Array<AWSCDK::StepFunctions::State>
Find the set of states reachable through transitions from the given start state.
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
98 99 100 101 102 103 |
# File 'step_functions/state.rb', line 98 def self.find_reachable_states(start, = nil) Jsii::Type.check_type(start, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZSJ9")), "start") = .is_a?(Hash) ? ::AWSCDK::StepFunctions::FindStateOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5GaW5kU3RhdGVPcHRpb25zIn0=")), "options") unless .nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.State", "findReachableStates", [start, ]) end |
.jsii_overridable_methods ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'step_functions/state.rb', line 20 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :branches => { kind: :property, name: "branches", is_optional: false }, :end_states => { kind: :property, name: "endStates", is_optional: false }, :id => { kind: :property, name: "id", is_optional: false }, :start_state => { kind: :property, name: "startState", is_optional: false }, :state_id => { kind: :property, name: "stateId", is_optional: false }, :arguments => { kind: :property, name: "arguments", is_optional: true }, :assign => { kind: :property, name: "assign", is_optional: true }, :comment => { kind: :property, name: "comment", is_optional: true }, :input_path => { kind: :property, name: "inputPath", is_optional: true }, :output_path => { kind: :property, name: "outputPath", is_optional: true }, :outputs => { kind: :property, name: "outputs", is_optional: true }, :parameters => { kind: :property, name: "parameters", is_optional: true }, :query_language => { kind: :property, name: "queryLanguage", is_optional: true }, :result_path => { kind: :property, name: "resultPath", is_optional: true }, :result_selector => { kind: :property, name: "resultSelector", is_optional: true }, :state_name => { kind: :property, name: "stateName", is_optional: true }, :default_choice => { kind: :property, name: "defaultChoice", is_optional: true }, :iteration => { kind: :property, name: "iteration", is_optional: true }, :processor => { kind: :property, name: "processor", is_optional: true }, :processor_config => { kind: :property, name: "processorConfig", is_optional: true }, :processor_mode => { kind: :property, name: "processorMode", is_optional: true }, :to_string => { kind: :method, name: "toString", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, :add_branch => { kind: :method, name: "addBranch", is_optional: false }, :add_choice => { kind: :method, name: "addChoice", is_optional: false }, :add_item_processor => { kind: :method, name: "addItemProcessor", is_optional: false }, :add_iterator => { kind: :method, name: "addIterator", is_optional: false }, :add_prefix => { kind: :method, name: "addPrefix", is_optional: false }, :bind_to_graph => { kind: :method, name: "bindToGraph", is_optional: false }, :make_default => { kind: :method, name: "makeDefault", is_optional: false }, :make_next => { kind: :method, name: "makeNext", is_optional: false }, :render_assign => { kind: :method, name: "renderAssign", is_optional: false }, :render_branches => { kind: :method, name: "renderBranches", is_optional: false }, :render_choices => { kind: :method, name: "renderChoices", is_optional: false }, :render_input_output => { kind: :method, name: "renderInputOutput", is_optional: false }, :render_item_processor => { kind: :method, name: "renderItemProcessor", is_optional: false }, :render_iterator => { kind: :method, name: "renderIterator", is_optional: false }, :render_next_end => { kind: :method, name: "renderNextEnd", is_optional: false }, :render_query_language => { kind: :method, name: "renderQueryLanguage", is_optional: false }, :render_result_selector => { kind: :method, name: "renderResultSelector", is_optional: false }, :render_retry_catch => { kind: :method, name: "renderRetryCatch", is_optional: false }, :to_state_json => { kind: :method, name: "toStateJson", is_optional: false }, :validate_state => { kind: :method, name: "validateState", is_optional: false }, :when_bound_to_graph => { kind: :method, name: "whenBoundToGraph", is_optional: false }, } end |
.prefix_states(root, prefix) ⇒ void
This method returns an undefined value.
Add a prefix to the stateId of all States found in a construct tree.
110 111 112 113 114 |
# File 'step_functions/state.rb', line 110 def self.prefix_states(root, prefix) Jsii::Type.check_type(root, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklDb25zdHJ1Y3QifQ==")), "root") Jsii::Type.check_type(prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_stepfunctions.State", "prefixStates", [root, prefix]) end |
Instance Method Details
#add_branch(branch) ⇒ void
This method returns an undefined value.
Add a parallel branch to this state.
289 290 291 292 |
# File 'step_functions/state.rb', line 289 def add_branch(branch) Jsii::Type.check_type(branch, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZUdyYXBoIn0=")), "branch") jsii_call_method("addBranch", [branch]) end |
#add_choice(condition, _next, options = nil) ⇒ void
This method returns an undefined value.
Add a choice branch to this state.
300 301 302 303 304 305 306 |
# File 'step_functions/state.rb', line 300 def add_choice(condition, _next, = nil) Jsii::Type.check_type(condition, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5Db25kaXRpb24ifQ==")), "condition") Jsii::Type.check_type(_next, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZSJ9")), "next") = .is_a?(Hash) ? ::AWSCDK::StepFunctions::ChoiceTransitionOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5DaG9pY2VUcmFuc2l0aW9uT3B0aW9ucyJ9")), "options") unless .nil? jsii_call_method("addChoice", [condition, _next, ]) end |
#add_item_processor(processor, config = nil) ⇒ void
This method returns an undefined value.
Add a item processor to this state.
313 314 315 316 317 318 |
# File 'step_functions/state.rb', line 313 def add_item_processor(processor, config = nil) Jsii::Type.check_type(processor, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZUdyYXBoIn0=")), "processor") config = config.is_a?(Hash) ? ::AWSCDK::StepFunctions::ProcessorConfig.new(**config.transform_keys(&:to_sym)) : config Jsii::Type.check_type(config, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5Qcm9jZXNzb3JDb25maWcifQ==")), "config") unless config.nil? jsii_call_method("addItemProcessor", [processor, config]) end |
#add_iterator(iteration) ⇒ void
This method returns an undefined value.
Add a map iterator to this state.
324 325 326 327 |
# File 'step_functions/state.rb', line 324 def add_iterator(iteration) Jsii::Type.check_type(iteration, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZUdyYXBoIn0=")), "iteration") jsii_call_method("addIterator", [iteration]) end |
#add_prefix(x) ⇒ void
This method returns an undefined value.
Add a prefix to the stateId of this state.
333 334 335 336 |
# File 'step_functions/state.rb', line 333 def add_prefix(x) Jsii::Type.check_type(x, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "x") jsii_call_method("addPrefix", [x]) end |
#arguments ⇒ Hash?
157 158 159 |
# File 'step_functions/state.rb', line 157 def arguments() jsii_get_property("arguments") end |
#assign ⇒ Hash?
162 163 164 |
# File 'step_functions/state.rb', line 162 def assign() jsii_get_property("assign") end |
#bind_to_graph(graph) ⇒ void
This method returns an undefined value.
Register this state as part of the given graph.
Don't call this. It will be called automatically when you work with states normally.
345 346 347 348 |
# File 'step_functions/state.rb', line 345 def bind_to_graph(graph) Jsii::Type.check_type(graph, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZUdyYXBoIn0=")), "graph") jsii_call_method("bindToGraph", [graph]) end |
#branches ⇒ Array<AWSCDK::StepFunctions::StateGraph>
124 125 126 |
# File 'step_functions/state.rb', line 124 def branches() jsii_get_property("branches") end |
#comment ⇒ String?
167 168 169 |
# File 'step_functions/state.rb', line 167 def comment() jsii_get_property("comment") end |
#default_choice ⇒ AWSCDK::StepFunctions::State?
212 213 214 |
# File 'step_functions/state.rb', line 212 def default_choice() jsii_get_property("defaultChoice") end |
#default_choice=(value) ⇒ Object
216 217 218 219 |
# File 'step_functions/state.rb', line 216 def default_choice=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZSJ9")), "defaultChoice") unless value.nil? jsii_set_property("defaultChoice", value) end |
#end_states ⇒ Array<AWSCDK::StepFunctions::INextable>
Continuable states of this Chainable.
131 132 133 |
# File 'step_functions/state.rb', line 131 def end_states() jsii_get_property("endStates") end |
#id ⇒ String
Descriptive identifier for this chainable.
138 139 140 |
# File 'step_functions/state.rb', line 138 def id() jsii_get_property("id") end |
#input_path ⇒ String?
172 173 174 |
# File 'step_functions/state.rb', line 172 def input_path() jsii_get_property("inputPath") end |
#iteration ⇒ AWSCDK::StepFunctions::StateGraph?
222 223 224 |
# File 'step_functions/state.rb', line 222 def iteration() jsii_get_property("iteration") end |
#iteration=(value) ⇒ Object
226 227 228 229 |
# File 'step_functions/state.rb', line 226 def iteration=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZUdyYXBoIn0=")), "iteration") unless value.nil? jsii_set_property("iteration", value) end |
#make_default(_def) ⇒ void
This method returns an undefined value.
Make the indicated state the default choice transition of this state.
354 355 356 357 |
# File 'step_functions/state.rb', line 354 def make_default(_def) Jsii::Type.check_type(_def, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZSJ9")), "def") jsii_call_method("makeDefault", [_def]) end |
#make_next(_next) ⇒ void
This method returns an undefined value.
Make the indicated state the default transition of this state.
363 364 365 366 |
# File 'step_functions/state.rb', line 363 def make_next(_next) Jsii::Type.check_type(_next, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZSJ9")), "next") jsii_call_method("makeNext", [_next]) end |
#node ⇒ Constructs::Node
The tree node.
119 120 121 |
# File 'step_functions/state.rb', line 119 def node() jsii_get_property("node") end |
#output_path ⇒ String?
177 178 179 |
# File 'step_functions/state.rb', line 177 def output_path() jsii_get_property("outputPath") end |
#outputs ⇒ Hash?
182 183 184 |
# File 'step_functions/state.rb', line 182 def outputs() jsii_get_property("outputs") end |
#parameters ⇒ Hash?
187 188 189 |
# File 'step_functions/state.rb', line 187 def parameters() jsii_get_property("parameters") end |
#processor ⇒ AWSCDK::StepFunctions::StateGraph?
232 233 234 |
# File 'step_functions/state.rb', line 232 def processor() jsii_get_property("processor") end |
#processor=(value) ⇒ Object
236 237 238 239 |
# File 'step_functions/state.rb', line 236 def processor=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZUdyYXBoIn0=")), "processor") unless value.nil? jsii_set_property("processor", value) end |
#processor_config ⇒ AWSCDK::StepFunctions::ProcessorConfig?
242 243 244 |
# File 'step_functions/state.rb', line 242 def processor_config() jsii_get_property("processorConfig") end |
#processor_config=(value) ⇒ Object
246 247 248 249 250 |
# File 'step_functions/state.rb', line 246 def processor_config=(value) value = value.is_a?(Hash) ? ::AWSCDK::StepFunctions::ProcessorConfig.new(**value.transform_keys(&:to_sym)) : value Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5Qcm9jZXNzb3JDb25maWcifQ==")), "processorConfig") unless value.nil? jsii_set_property("processorConfig", value) end |
#processor_mode ⇒ AWSCDK::StepFunctions::ProcessorMode?
253 254 255 |
# File 'step_functions/state.rb', line 253 def processor_mode() jsii_get_property("processorMode") end |
#processor_mode=(value) ⇒ Object
257 258 259 260 |
# File 'step_functions/state.rb', line 257 def processor_mode=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5Qcm9jZXNzb3JNb2RlIn0=")), "processorMode") unless value.nil? jsii_set_property("processorMode", value) end |
#query_language ⇒ AWSCDK::StepFunctions::QueryLanguage?
192 193 194 |
# File 'step_functions/state.rb', line 192 def query_language() jsii_get_property("queryLanguage") end |
#render_assign(top_level_query_language = nil) ⇒ Object
Render the assign in ASL JSON format.
372 373 374 375 |
# File 'step_functions/state.rb', line 372 def render_assign(top_level_query_language = nil) Jsii::Type.check_type(top_level_query_language, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5RdWVyeUxhbmd1YWdlIn0=")), "topLevelQueryLanguage") unless top_level_query_language.nil? jsii_call_method("renderAssign", [top_level_query_language]) end |
#render_branches ⇒ Object
Render parallel branches in ASL JSON format.
380 381 382 |
# File 'step_functions/state.rb', line 380 def render_branches() jsii_call_method("renderBranches", []) end |
#render_choices(top_level_query_language = nil) ⇒ Object
Render the choices in ASL JSON format.
388 389 390 391 |
# File 'step_functions/state.rb', line 388 def render_choices(top_level_query_language = nil) Jsii::Type.check_type(top_level_query_language, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5RdWVyeUxhbmd1YWdlIn0=")), "topLevelQueryLanguage") unless top_level_query_language.nil? jsii_call_method("renderChoices", [top_level_query_language]) end |
#render_input_output ⇒ Object
Render InputPath/Parameters/OutputPath/Arguments/Output in ASL JSON format.
396 397 398 |
# File 'step_functions/state.rb', line 396 def render_input_output() jsii_call_method("renderInputOutput", []) end |
#render_item_processor ⇒ Object
Render ItemProcessor in ASL JSON format.
403 404 405 |
# File 'step_functions/state.rb', line 403 def render_item_processor() jsii_call_method("renderItemProcessor", []) end |
#render_iterator ⇒ Object
Render map iterator in ASL JSON format.
410 411 412 |
# File 'step_functions/state.rb', line 410 def render_iterator() jsii_call_method("renderIterator", []) end |
#render_next_end ⇒ Object
Render the default next state in ASL JSON format.
417 418 419 |
# File 'step_functions/state.rb', line 417 def render_next_end() jsii_call_method("renderNextEnd", []) end |
#render_query_language(top_level_query_language = nil) ⇒ Object
Render QueryLanguage in ASL JSON format if needed.
425 426 427 428 |
# File 'step_functions/state.rb', line 425 def render_query_language(top_level_query_language = nil) Jsii::Type.check_type(top_level_query_language, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5RdWVyeUxhbmd1YWdlIn0=")), "topLevelQueryLanguage") unless top_level_query_language.nil? jsii_call_method("renderQueryLanguage", [top_level_query_language]) end |
#render_result_selector ⇒ Object
Render ResultSelector in ASL JSON format.
433 434 435 |
# File 'step_functions/state.rb', line 433 def render_result_selector() jsii_call_method("renderResultSelector", []) end |
#render_retry_catch(top_level_query_language = nil) ⇒ Object
Render error recovery options in ASL JSON format.
441 442 443 444 |
# File 'step_functions/state.rb', line 441 def render_retry_catch(top_level_query_language = nil) Jsii::Type.check_type(top_level_query_language, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5RdWVyeUxhbmd1YWdlIn0=")), "topLevelQueryLanguage") unless top_level_query_language.nil? jsii_call_method("renderRetryCatch", [top_level_query_language]) end |
#result_path ⇒ String?
197 198 199 |
# File 'step_functions/state.rb', line 197 def result_path() jsii_get_property("resultPath") end |
#result_selector ⇒ Hash?
202 203 204 |
# File 'step_functions/state.rb', line 202 def result_selector() jsii_get_property("resultSelector") end |
#start_state ⇒ AWSCDK::StepFunctions::State
First state of this Chainable.
145 146 147 |
# File 'step_functions/state.rb', line 145 def start_state() jsii_get_property("startState") end |
#state_id ⇒ String
Tokenized string that evaluates to the state's ID.
152 153 154 |
# File 'step_functions/state.rb', line 152 def state_id() jsii_get_property("stateId") end |
#state_name ⇒ String?
207 208 209 |
# File 'step_functions/state.rb', line 207 def state_name() jsii_get_property("stateName") end |
#to_state_json(state_machine_query_language = nil) ⇒ Hash
Render the state as JSON.
450 451 452 453 |
# File 'step_functions/state.rb', line 450 def to_state_json(state_machine_query_language = nil) Jsii::Type.check_type(state_machine_query_language, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5RdWVyeUxhbmd1YWdlIn0=")), "stateMachineQueryLanguage") unless state_machine_query_language.nil? jsii_call_method("toStateJson", [state_machine_query_language]) end |
#to_string ⇒ String
Returns a string representation of this construct.
265 266 267 |
# File 'step_functions/state.rb', line 265 def to_string() jsii_call_method("toString", []) end |
#validate_state ⇒ Array<String>
Allows the state to validate itself.
458 459 460 |
# File 'step_functions/state.rb', line 458 def validate_state() jsii_call_method("validateState", []) end |
#when_bound_to_graph(graph) ⇒ void
This method returns an undefined value.
Called whenever this state is bound to a graph.
Can be overridden by subclasses.
468 469 470 471 |
# File 'step_functions/state.rb', line 468 def when_bound_to_graph(graph) Jsii::Type.check_type(graph, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5TdGF0ZUdyYXBoIn0=")), "graph") jsii_call_method("whenBoundToGraph", [graph]) end |
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
278 279 280 281 282 283 |
# File 'step_functions/state.rb', line 278 def with(*mixins) mixins.each_with_index do |item, index| Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]") end jsii_call_method("with", [*mixins]) end |