Class: AWSCDK::EC2::CfnTransitGatewayConnectPeerProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnTransitGatewayConnectPeerProps
- Defined in:
- ec2/cfn_transit_gateway_connect_peer_props.rb
Overview
Properties for defining a CfnTransitGatewayConnectPeer.
Instance Attribute Summary collapse
-
#connect_peer_configuration ⇒ AWSCDK::IResolvable, AWSCDK::EC2::CfnTransitGatewayConnectPeer::TransitGatewayConnectPeerConfigurationProperty
readonly
The Connect peer details.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags for the Connect peer.
-
#transit_gateway_attachment_id ⇒ String
readonly
The ID of the Connect attachment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connect_peer_configuration:, transit_gateway_attachment_id:, tags: nil) ⇒ CfnTransitGatewayConnectPeerProps
constructor
A new instance of CfnTransitGatewayConnectPeerProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connect_peer_configuration:, transit_gateway_attachment_id:, tags: nil) ⇒ CfnTransitGatewayConnectPeerProps
Returns a new instance of CfnTransitGatewayConnectPeerProps.
12 13 14 15 16 17 18 19 |
# File 'ec2/cfn_transit_gateway_connect_peer_props.rb', line 12 def initialize(connect_peer_configuration:, transit_gateway_attachment_id:, tags: nil) @connect_peer_configuration = connect_peer_configuration.is_a?(Hash) ? ::AWSCDK::EC2::CfnTransitGatewayConnectPeer::TransitGatewayConnectPeerConfigurationProperty.new(**connect_peer_configuration.transform_keys(&:to_sym)) : connect_peer_configuration Jsii::Type.check_type(@connect_peer_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuVHJhbnNpdEdhdGV3YXlDb25uZWN0UGVlci5UcmFuc2l0R2F0ZXdheUNvbm5lY3RQZWVyQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "connectPeerConfiguration") @transit_gateway_attachment_id = Jsii::Type.check_type(@transit_gateway_attachment_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "transitGatewayAttachmentId") @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#connect_peer_configuration ⇒ AWSCDK::IResolvable, AWSCDK::EC2::CfnTransitGatewayConnectPeer::TransitGatewayConnectPeerConfigurationProperty (readonly)
The Connect peer details.
25 26 27 |
# File 'ec2/cfn_transit_gateway_connect_peer_props.rb', line 25 def connect_peer_configuration @connect_peer_configuration end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags for the Connect peer.
35 36 37 |
# File 'ec2/cfn_transit_gateway_connect_peer_props.rb', line 35 def @tags end |
#transit_gateway_attachment_id ⇒ String (readonly)
The ID of the Connect attachment.
30 31 32 |
# File 'ec2/cfn_transit_gateway_connect_peer_props.rb', line 30 def @transit_gateway_attachment_id end |
Class Method Details
.jsii_properties ⇒ Object
37 38 39 40 41 42 43 |
# File 'ec2/cfn_transit_gateway_connect_peer_props.rb', line 37 def self.jsii_properties { :connect_peer_configuration => "connectPeerConfiguration", :transit_gateway_attachment_id => "transitGatewayAttachmentId", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'ec2/cfn_transit_gateway_connect_peer_props.rb', line 45 def to_jsii result = {} result.merge!({ "connectPeerConfiguration" => @connect_peer_configuration, "transitGatewayAttachmentId" => @transit_gateway_attachment_id, "tags" => @tags, }) result.compact end |