Class: AWSCDK::ARCRegionSwitch::CfnPlan::StepProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
arc_region_switch/cfn_plan.rb

Overview

Represents a step in a Region switch plan workflow.

Each step performs a specific action during the Region switch process.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(execution_block_configuration:, execution_block_type:, name:, description: nil) ⇒ StepProperty

Returns a new instance of StepProperty.

Parameters:



3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
# File 'arc_region_switch/cfn_plan.rb', line 3024

def initialize(execution_block_configuration:, execution_block_type:, name:, description: nil)
  @execution_block_configuration = execution_block_configuration.is_a?(Hash) ? ::AWSCDK::ARCRegionSwitch::CfnPlan::ExecutionBlockConfigurationProperty.new(**execution_block_configuration.transform_keys(&:to_sym)) : execution_block_configuration
  Jsii::Type.check_type(@execution_block_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcmNyZWdpb25zd2l0Y2guQ2ZuUGxhbi5FeGVjdXRpb25CbG9ja0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "executionBlockConfiguration")
  @execution_block_type = execution_block_type
  Jsii::Type.check_type(@execution_block_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executionBlockType")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The description of a step in a workflow.



3054
3055
3056
# File 'arc_region_switch/cfn_plan.rb', line 3054

def description
  @description
end

#execution_block_configurationAWSCDK::IResolvable, AWSCDK::ARCRegionSwitch::CfnPlan::ExecutionBlockConfigurationProperty (readonly)

The configuration for an execution block in a workflow.



3039
3040
3041
# File 'arc_region_switch/cfn_plan.rb', line 3039

def execution_block_configuration
  @execution_block_configuration
end

#execution_block_typeString (readonly)

The type of an execution block in a workflow.



3044
3045
3046
# File 'arc_region_switch/cfn_plan.rb', line 3044

def execution_block_type
  @execution_block_type
end

#nameString (readonly)

The name of a step in a workflow.



3049
3050
3051
# File 'arc_region_switch/cfn_plan.rb', line 3049

def name
  @name
end

Class Method Details

.jsii_propertiesObject



3056
3057
3058
3059
3060
3061
3062
3063
# File 'arc_region_switch/cfn_plan.rb', line 3056

def self.jsii_properties
  {
    :execution_block_configuration => "executionBlockConfiguration",
    :execution_block_type => "executionBlockType",
    :name => "name",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
# File 'arc_region_switch/cfn_plan.rb', line 3065

def to_jsii
  result = {}
  result.merge!({
    "executionBlockConfiguration" => @execution_block_configuration,
    "executionBlockType" => @execution_block_type,
    "name" => @name,
    "description" => @description,
  })
  result.compact
end