Class: AWSCDK::ARCRegionSwitch::CfnPlan::AsgProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of AsgProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the EC2 Auto Scaling group.

  • 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.



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 = 
  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 EC2 Auto Scaling group.



812
813
814
# File 'arc_region_switch/cfn_plan.rb', line 812

def arn
  @arn
end

#cross_account_roleString? (readonly)

The cross account role for the configuration.



817
818
819
# File 'arc_region_switch/cfn_plan.rb', line 817

def 
  @cross_account_role
end

#external_idString? (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_propertiesObject



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_jsiiObject



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