Class: AWSCDK::StepFunctions::CustomStateProps

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

Overview

Properties for defining a custom state definition.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state_json:) ⇒ CustomStateProps

Returns a new instance of CustomStateProps.

Parameters:

  • state_json (Hash{String => Object})

    Amazon States Language (JSON-based) definition of the state.



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_jsonHash{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_propertiesObject



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_jsiiObject



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