---
type: resource-type
title: TransitGatewayVpcAttachment
description: aws resource type AWS::EC2::TransitGatewayVpcAttachment
name: TransitGatewayVpcAttachment
lexicon: aws
resource_type: AWS::EC2::TransitGatewayVpcAttachment
---
`AWS::EC2::TransitGatewayVpcAttachment`, a resource type of the aws lexicon.

## Properties

- `SubnetIds` (`string[]`, required)
- `TransitGatewayId` (`string`, required)
- `VpcId` (`string`, required)
- `AddSubnetIds` (`string[]`, optional)
- `Id` (`string`, optional)
- `Options` (`Record<string, unknown>`, optional): The options for the transit gateway vpc attachment.
- `RemoveSubnetIds` (`string[]`, optional)
- `Tags` (`TransitGatewayVpcAttachment_Tag[]`, optional)

## Attributes

- `Id`
