Class: AWSCDK::ARCRegionSwitch::CfnPlan::LambdasProperty

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

Overview

Configuration for AWS Lambda functions 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) ⇒ LambdasProperty

Returns a new instance of LambdasProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the Lambda function.

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



2307
2308
2309
2310
2311
2312
2313
2314
# File 'arc_region_switch/cfn_plan.rb', line 2307

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 Lambda function.



2320
2321
2322
# File 'arc_region_switch/cfn_plan.rb', line 2320

def arn
  @arn
end

#cross_account_roleString? (readonly)

The cross account role for the configuration.



2325
2326
2327
# File 'arc_region_switch/cfn_plan.rb', line 2325

def 
  @cross_account_role
end

#external_idString? (readonly)

The external ID (secret key) for the configuration.



2330
2331
2332
# File 'arc_region_switch/cfn_plan.rb', line 2330

def external_id
  @external_id
end

Class Method Details

.jsii_propertiesObject



2332
2333
2334
2335
2336
2337
2338
# File 'arc_region_switch/cfn_plan.rb', line 2332

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

Instance Method Details

#to_jsiiObject



2340
2341
2342
2343
2344
2345
2346
2347
2348
# File 'arc_region_switch/cfn_plan.rb', line 2340

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