Class: AWSCDK::ARCRegionSwitch::CfnPlan::RegionSwitchPlanConfigurationProperty

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

Overview

Configuration for nested Region switch plans.

This allows one Region switch plan to trigger another plan as part of its execution.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arn:, cross_account_role: nil, external_id: nil) ⇒ RegionSwitchPlanConfigurationProperty

Returns a new instance of RegionSwitchPlanConfigurationProperty.

Parameters:

  • arn (String)

    The Amazon Resource Name (ARN) of the plan configuration.

  • cross_account_role (String, nil) (defaults to: nil)

    The cross account role for the configuration.

  • external_id (String, nil) (defaults to: nil)

    The external ID (secret key) for the configuration.



2610
2611
2612
2613
2614
2615
2616
2617
# File 'arc_region_switch/cfn_plan.rb', line 2610

def initialize(arn:, cross_account_role: nil, external_id: nil)
  @arn = arn
  Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn")
  @cross_account_role = 
  Jsii::Type.check_type(@cross_account_role, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "crossAccountRole") unless @cross_account_role.nil?
  @external_id = external_id
  Jsii::Type.check_type(@external_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "externalId") unless @external_id.nil?
end

Instance Attribute Details

#arnString (readonly)

The Amazon Resource Name (ARN) of the plan configuration.



2623
2624
2625
# File 'arc_region_switch/cfn_plan.rb', line 2623

def arn
  @arn
end

#cross_account_roleString? (readonly)

The cross account role for the configuration.



2628
2629
2630
# File 'arc_region_switch/cfn_plan.rb', line 2628

def 
  @cross_account_role
end

#external_idString? (readonly)

The external ID (secret key) for the configuration.



2633
2634
2635
# File 'arc_region_switch/cfn_plan.rb', line 2633

def external_id
  @external_id
end

Class Method Details

.jsii_propertiesObject



2635
2636
2637
2638
2639
2640
2641
# File 'arc_region_switch/cfn_plan.rb', line 2635

def self.jsii_properties
  {
    :arn => "arn",
    :cross_account_role => "crossAccountRole",
    :external_id => "externalId",
  }
end

Instance Method Details

#to_jsiiObject



2643
2644
2645
2646
2647
2648
2649
2650
2651
# File 'arc_region_switch/cfn_plan.rb', line 2643

def to_jsii
  result = {}
  result.merge!({
    "arn" => @arn,
    "crossAccountRole" => @cross_account_role,
    "externalId" => @external_id,
  })
  result.compact
end