Class: AWSCDK::EC2::CfnTransitGatewayConnectProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnTransitGatewayConnectProps
- Defined in:
- ec2/cfn_transit_gateway_connect_props.rb
Overview
Properties for defining a CfnTransitGatewayConnect.
Instance Attribute Summary collapse
-
#options ⇒ AWSCDK::IResolvable, AWSCDK::EC2::CfnTransitGatewayConnect::TransitGatewayConnectOptionsProperty
readonly
The Connect attachment options.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags for the attachment.
-
#transport_transit_gateway_attachment_id ⇒ String, AWSCDK::Interfaces::AWSEC2::ITransitGatewayVPCAttachmentRef
readonly
The ID of the attachment from which the Connect attachment was created.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options:, transport_transit_gateway_attachment_id:, tags: nil) ⇒ CfnTransitGatewayConnectProps
constructor
A new instance of CfnTransitGatewayConnectProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(options:, transport_transit_gateway_attachment_id:, tags: nil) ⇒ CfnTransitGatewayConnectProps
Returns a new instance of CfnTransitGatewayConnectProps.
12 13 14 15 16 17 18 19 |
# File 'ec2/cfn_transit_gateway_connect_props.rb', line 12 def initialize(options:, transport_transit_gateway_attachment_id:, tags: nil) @options = .is_a?(Hash) ? ::AWSCDK::EC2::CfnTransitGatewayConnect::TransitGatewayConnectOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuQ2ZuVHJhbnNpdEdhdGV3YXlDb25uZWN0LlRyYW5zaXRHYXRld2F5Q29ubmVjdE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "options") @transport_transit_gateway_attachment_id = Jsii::Type.check_type(@transport_transit_gateway_attachment_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVRyYW5zaXRHYXRld2F5VnBjQXR0YWNobWVudFJlZiJ9XX19")), "transportTransitGatewayAttachmentId") @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
#options ⇒ AWSCDK::IResolvable, AWSCDK::EC2::CfnTransitGatewayConnect::TransitGatewayConnectOptionsProperty (readonly)
The Connect attachment options.
- protocol (gre)
27 28 29 |
# File 'ec2/cfn_transit_gateway_connect_props.rb', line 27 def @options end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags for the attachment.
37 38 39 |
# File 'ec2/cfn_transit_gateway_connect_props.rb', line 37 def @tags end |
#transport_transit_gateway_attachment_id ⇒ String, AWSCDK::Interfaces::AWSEC2::ITransitGatewayVPCAttachmentRef (readonly)
The ID of the attachment from which the Connect attachment was created.
32 33 34 |
# File 'ec2/cfn_transit_gateway_connect_props.rb', line 32 def @transport_transit_gateway_attachment_id end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'ec2/cfn_transit_gateway_connect_props.rb', line 39 def self.jsii_properties { :options => "options", :transport_transit_gateway_attachment_id => "transportTransitGatewayAttachmentId", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'ec2/cfn_transit_gateway_connect_props.rb', line 47 def to_jsii result = {} result.merge!({ "options" => @options, "transportTransitGatewayAttachmentId" => @transport_transit_gateway_attachment_id, "tags" => @tags, }) result.compact end |