Class: AWSCDK::StepFunctions::CustomStateProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctions::CustomStateProps
- Defined in:
- step_functions/custom_state_props.rb
Overview
Properties for defining a custom state definition.
Instance Attribute Summary collapse
-
#state_json ⇒ Hash{String => Object}
readonly
Amazon States Language (JSON-based) definition of the state.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(state_json:) ⇒ CustomStateProps
constructor
A new instance of CustomStateProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(state_json:) ⇒ CustomStateProps
Returns a new instance of CustomStateProps.
8 9 10 11 |
# File 'step_functions/custom_state_props.rb', line 8 def initialize(state_json:) @state_json = state_json Jsii::Type.check_type(@state_json, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6ImFueSJ9LCJraW5kIjoibWFwIn19")), "stateJson") end |
Instance Attribute Details
#state_json ⇒ Hash{String => Object} (readonly)
Amazon States Language (JSON-based) definition of the state.
17 18 19 |
# File 'step_functions/custom_state_props.rb', line 17 def state_json @state_json end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'step_functions/custom_state_props.rb', line 19 def self.jsii_properties { :state_json => "stateJson", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'step_functions/custom_state_props.rb', line 25 def to_jsii result = {} result.merge!({ "stateJson" => @state_json, }) result.compact end |