Class: AWSCDK::ARCRegionSwitch::CfnPlan::RegionSwitchPlanConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::RegionSwitchPlanConfigurationProperty
- 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
-
#arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the plan configuration.
-
#cross_account_role ⇒ String?
readonly
The cross account role for the configuration.
-
#external_id ⇒ String?
readonly
The external ID (secret key) for the configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn:, cross_account_role: nil, external_id: nil) ⇒ RegionSwitchPlanConfigurationProperty
constructor
A new instance of RegionSwitchPlanConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn:, cross_account_role: nil, external_id: nil) ⇒ RegionSwitchPlanConfigurationProperty
Returns a new instance of RegionSwitchPlanConfigurationProperty.
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 = 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
#arn ⇒ String (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_role ⇒ String? (readonly)
The cross account role for the configuration.
2628 2629 2630 |
# File 'arc_region_switch/cfn_plan.rb', line 2628 def cross_account_role @cross_account_role end |
#external_id ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |