# AWS::EC2::LocalGatewayRouteTableVPCAssociation Describes an association between a local gateway route table and a VPC. ## Syntax To declare this entity in your AWS CloudFormation template, use the following syntax: ### JSON
{
"Type" : "AWS::EC2::LocalGatewayRouteTableVPCAssociation",
"Properties" : {
"LocalGatewayRouteTableId" : String,
"VpcId" : String,
"Tags" : [ Tag, ... ]
}
}
### YAML
Type: AWS::EC2::LocalGatewayRouteTableVPCAssociation
Properties:
LocalGatewayRouteTableId: String
VpcId: String
Tags:
- Tag
## Properties
#### LocalGatewayRouteTableId
The ID of the local gateway route table.
_Required_: Yes
_Type_: String
_Update requires_: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)
#### VpcId
The ID of the VPC.
_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
_Required_: No
_Type_: List of Tag
_Update requires_: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)
## Return Values
### Ref
When you pass the logical ID of this resource to the intrinsic `Ref` function, Ref returns the LocalGatewayRouteTableVpcAssociationId.
### 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).
#### LocalGatewayId
The ID of the local gateway.
#### LocalGatewayRouteTableVpcAssociationId
The ID of the association.
#### State
The state of the association.