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

## Properties

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

## Attributes

- `Id`
