Class: AWSCDK::EC2::CfnTransitGatewayRouteTableAssociationProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_transit_gateway_route_table_association_props.rb

Overview

Properties for defining a CfnTransitGatewayRouteTableAssociation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(transit_gateway_attachment_id:, transit_gateway_route_table_id:) ⇒ CfnTransitGatewayRouteTableAssociationProps

Returns a new instance of CfnTransitGatewayRouteTableAssociationProps.

Parameters:



11
12
13
14
15
16
# File 'ec2/cfn_transit_gateway_route_table_association_props.rb', line 11

def initialize(transit_gateway_attachment_id:, transit_gateway_route_table_id:)
  @transit_gateway_attachment_id = transit_gateway_attachment_id
  Jsii::Type.check_type(@transit_gateway_attachment_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVRyYW5zaXRHYXRld2F5QXR0YWNobWVudFJlZiJ9XX19")), "transitGatewayAttachmentId")
  @transit_gateway_route_table_id = transit_gateway_route_table_id
  Jsii::Type.check_type(@transit_gateway_route_table_id, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19lYzIuSVRyYW5zaXRHYXRld2F5Um91dGVUYWJsZVJlZiJ9XX19")), "transitGatewayRouteTableId")
end

Instance Attribute Details

#transit_gateway_attachment_idString, AWSCDK::Interfaces::AWSEC2::ITransitGatewayAttachmentRef (readonly)

The ID of the attachment.



22
23
24
# File 'ec2/cfn_transit_gateway_route_table_association_props.rb', line 22

def transit_gateway_attachment_id
  @transit_gateway_attachment_id
end

#transit_gateway_route_table_idString, AWSCDK::Interfaces::AWSEC2::ITransitGatewayRouteTableRef (readonly)

The ID of the route table for the transit gateway.



27
28
29
# File 'ec2/cfn_transit_gateway_route_table_association_props.rb', line 27

def transit_gateway_route_table_id
  @transit_gateway_route_table_id
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'ec2/cfn_transit_gateway_route_table_association_props.rb', line 29

def self.jsii_properties
  {
    :transit_gateway_attachment_id => "transitGatewayAttachmentId",
    :transit_gateway_route_table_id => "transitGatewayRouteTableId",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'ec2/cfn_transit_gateway_route_table_association_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "transitGatewayAttachmentId" => @transit_gateway_attachment_id,
    "transitGatewayRouteTableId" => @transit_gateway_route_table_id,
  })
  result.compact
end