Class: AWSCDK::ARCRegionSwitch::CfnPlan::EventSourceMappingProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of EventSourceMappingProperty.

Parameters:

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


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 = 
  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)



1667
1668
1669
# File 'arc_region_switch/cfn_plan.rb', line 1667

def arn
  @arn
end

#cross_account_roleString? (readonly)



1670
1671
1672
# File 'arc_region_switch/cfn_plan.rb', line 1670

def 
  @cross_account_role
end

#external_idString? (readonly)



1673
1674
1675
# File 'arc_region_switch/cfn_plan.rb', line 1673

def external_id
  @external_id
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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