Class: AWSCDK::ARCRegionSwitch::CfnPlan::AsgProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::AsgProperty
- Defined in:
- arc_region_switch/cfn_plan.rb
Overview
Configuration for an Amazon EC2 Auto Scaling group used in a Region switch plan.
Instance Attribute Summary collapse
-
#arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the EC2 Auto Scaling group.
-
#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: nil, cross_account_role: nil, external_id: nil) ⇒ AsgProperty
constructor
A new instance of AsgProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn: nil, cross_account_role: nil, external_id: nil) ⇒ AsgProperty
Returns a new instance of AsgProperty.
799 800 801 802 803 804 805 806 |
# File 'arc_region_switch/cfn_plan.rb', line 799 def initialize(arn: nil, cross_account_role: nil, external_id: nil) @arn = arn Jsii::Type.check_type(@arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arn") unless @arn.nil? @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 EC2 Auto Scaling group.
812 813 814 |
# File 'arc_region_switch/cfn_plan.rb', line 812 def arn @arn end |
#cross_account_role ⇒ String? (readonly)
The cross account role for the configuration.
817 818 819 |
# File 'arc_region_switch/cfn_plan.rb', line 817 def cross_account_role @cross_account_role end |
#external_id ⇒ String? (readonly)
The external ID (secret key) for the configuration.
822 823 824 |
# File 'arc_region_switch/cfn_plan.rb', line 822 def external_id @external_id end |
Class Method Details
.jsii_properties ⇒ Object
824 825 826 827 828 829 830 |
# File 'arc_region_switch/cfn_plan.rb', line 824 def self.jsii_properties { :arn => "arn", :cross_account_role => "crossAccountRole", :external_id => "externalId", } end |
Instance Method Details
#to_jsii ⇒ Object
832 833 834 835 836 837 838 839 840 |
# File 'arc_region_switch/cfn_plan.rb', line 832 def to_jsii result = {} result.merge!({ "arn" => @arn, "crossAccountRole" => @cross_account_role, "externalId" => @external_id, }) result.compact end |