Class: AWSCDK::ARCRegionSwitch::CfnPlan::LambdasProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::LambdasProperty
- Defined in:
- arc_region_switch/cfn_plan.rb
Overview
Configuration for AWS Lambda functions used in a Region switch plan.
Instance Attribute Summary collapse
-
#arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the Lambda function.
-
#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) ⇒ LambdasProperty
constructor
A new instance of LambdasProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn: nil, cross_account_role: nil, external_id: nil) ⇒ LambdasProperty
Returns a new instance of LambdasProperty.
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 = 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 Lambda function.
2320 2321 2322 |
# File 'arc_region_switch/cfn_plan.rb', line 2320 def arn @arn end |
#cross_account_role ⇒ String? (readonly)
The cross account role for the configuration.
2325 2326 2327 |
# File 'arc_region_switch/cfn_plan.rb', line 2325 def cross_account_role @cross_account_role end |
#external_id ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |