Class: AWSCDK::StepFunctions::DefinitionConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctions::DefinitionConfig
- Defined in:
- step_functions/definition_config.rb
Overview
Partial object from the StateMachine L1 construct properties containing definition information.
Instance Attribute Summary collapse
- #definition ⇒ Object? readonly
- #definition_s3_location ⇒ AWSCDK::StepFunctions::CfnStateMachine::S3LocationProperty? readonly
- #definition_string ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition: nil, definition_s3_location: nil, definition_string: nil) ⇒ DefinitionConfig
constructor
A new instance of DefinitionConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(definition: nil, definition_s3_location: nil, definition_string: nil) ⇒ DefinitionConfig
Returns a new instance of DefinitionConfig.
10 11 12 13 14 15 16 17 |
# File 'step_functions/definition_config.rb', line 10 def initialize(definition: nil, definition_s3_location: nil, definition_string: nil) @definition = definition Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "definition") unless @definition.nil? @definition_s3_location = definition_s3_location.is_a?(Hash) ? ::AWSCDK::StepFunctions::CfnStateMachine::S3LocationProperty.new(**definition_s3_location.transform_keys(&:to_sym)) : definition_s3_location Jsii::Type.check_type(@definition_s3_location, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9ucy5DZm5TdGF0ZU1hY2hpbmUuUzNMb2NhdGlvblByb3BlcnR5In0=")), "definitionS3Location") unless @definition_s3_location.nil? @definition_string = definition_string Jsii::Type.check_type(@definition_string, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "definitionString") unless @definition_string.nil? end |
Instance Attribute Details
#definition ⇒ Object? (readonly)
20 21 22 |
# File 'step_functions/definition_config.rb', line 20 def definition @definition end |
#definition_s3_location ⇒ AWSCDK::StepFunctions::CfnStateMachine::S3LocationProperty? (readonly)
22 23 24 |
# File 'step_functions/definition_config.rb', line 22 def definition_s3_location @definition_s3_location end |
#definition_string ⇒ String? (readonly)
24 25 26 |
# File 'step_functions/definition_config.rb', line 24 def definition_string @definition_string end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 32 |
# File 'step_functions/definition_config.rb', line 26 def self.jsii_properties { :definition => "definition", :definition_s3_location => "definitionS3Location", :definition_string => "definitionString", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 42 |
# File 'step_functions/definition_config.rb', line 34 def to_jsii result = {} result.merge!({ "definition" => @definition, "definitionS3Location" => @definition_s3_location, "definitionString" => @definition_string, }) result.compact end |