# AWS::EC2::TransitGatewayRouteTable Resource Type definition for AWS::EC2::TransitGatewayRouteTable ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
"Type" : "AWS::EC2::TransitGatewayRouteTable",
"Properties" : {
"TransitGatewayId" : String,
"Tags" : [ Tag, ... ]
}
}
### YAML
Type: AWS::EC2::TransitGatewayRouteTable
Properties:
TransitGatewayId: String
Tags:
- Tag
## Properties
#### TransitGatewayId
The ID of the transit gateway.
_Required_: Yes
_Type_: String
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### Tags
Tags are composed of a Key/Value pair. You can use tags to categorize and track each parameter group. The tag value null is permitted.
_Required_: No
_Type_: List of Tag
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
## Return Values
### Ref
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the TransitGatewayRouteTableId.
### Fn::GetAtt
The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the `Fn::GetAtt` intrinsic function, see [Fn::GetAtt](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-getatt.html).
#### TransitGatewayRouteTableId
Transit Gateway Route Table primary identifier