AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS::EC2::TransitGatewayRouteTableAssociation

Associate an attachment with a transit gateway route table. For more information, see Amazon VPC Transit Gateways.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::EC2::TransitGatewayRouteTableAssociation", "Properties" : { "TransitGatewayAttachmentId" : String, "TransitGatewayRouteTableId" : String } }

YAML

Type: "AWS::EC2::TransitGatewayRouteTableAssociation" Properties: TransitGatewayAttachmentId: String TransitGatewayRouteTableId: String

Properties

TransitGatewayAttachmentId

The ID of the attachment.

Required: Yes

Type: String

Update requires: Replacement

TransitGatewayRouteTableId

The ID of the transit gateway route table.

Required: Yes

Type: String

Update requires: Replacement

Return Values

Ref

When you pass the logical ID of an AWS::EC2::TransitGatewayRouteTableAssociation resource to the intrinsic Ref function, the function returns the ID of the attachment and the ID of the transit gateway route table, separated by an underscore, such as tgw-attach-0bbfdd70ef7d35f5d_tgw-rtb-020b99a6568edc33a.

For more information about using the Ref function, see Ref.

See Also