AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::EC2::TransitGatewayVpcAttachment

CfnTransitGatewayVpcAttachment

Specifies a VPC attachment.

Import

import { CfnTransitGatewayVpcAttachment } from 'aws-cdk-lib/aws-ec2';

Or use the module namespace:

import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnTransitGatewayVpcAttachment

Properties

Configuration passed to the constructor as CfnTransitGatewayVpcAttachmentProps.

subnetIdsRequired
string[]

The IDs of the subnets.

transitGatewayIdRequired
string | ITransitGatewayRef

The ID of the transit gateway.

vpcIdRequired
string

The ID of the VPC.

addSubnetIdsOptional
string[]

The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.

optionsOptional
any

The VPC attachment options.

removeSubnetIdsOptional
string[]

The IDs of one or more subnets to remove.

tagsOptional
CfnTag[]

The tags for the VPC attachment.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon EC2 Cheat Sheet

Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.

Download Free Infographic