Class: AWSCDK::ARCRegionSwitch::CfnPlan::EventSourceMappingProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::EventSourceMappingProperty
- Defined in:
- arc_region_switch/cfn_plan.rb
Overview
Instance Attribute Summary collapse
- #arn ⇒ String readonly
- #cross_account_role ⇒ String? readonly
- #external_id ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arn:, cross_account_role: nil, external_id: nil) ⇒ EventSourceMappingProperty
constructor
A new instance of EventSourceMappingProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arn:, cross_account_role: nil, external_id: nil) ⇒ EventSourceMappingProperty
Returns a new instance of EventSourceMappingProperty.
1656 1657 1658 1659 1660 1661 1662 1663 |
# File 'arc_region_switch/cfn_plan.rb', line 1656 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)
1667 1668 1669 |
# File 'arc_region_switch/cfn_plan.rb', line 1667 def arn @arn end |
#cross_account_role ⇒ String? (readonly)
1670 1671 1672 |
# File 'arc_region_switch/cfn_plan.rb', line 1670 def cross_account_role @cross_account_role end |
#external_id ⇒ String? (readonly)
1673 1674 1675 |
# File 'arc_region_switch/cfn_plan.rb', line 1673 def external_id @external_id end |
Class Method Details
.jsii_properties ⇒ Object
1675 1676 1677 1678 1679 1680 1681 |
# File 'arc_region_switch/cfn_plan.rb', line 1675 def self.jsii_properties { :arn => "arn", :cross_account_role => "crossAccountRole", :external_id => "externalId", } end |
Instance Method Details
#to_jsii ⇒ Object
1683 1684 1685 1686 1687 1688 1689 1690 1691 |
# File 'arc_region_switch/cfn_plan.rb', line 1683 def to_jsii result = {} result.merge!({ "arn" => @arn, "crossAccountRole" => @cross_account_role, "externalId" => @external_id, }) result.compact end |