AWS::EC2::TransitGatewayVpcAttachmentSpecifies a VPC attachment.
import { CfnTransitGatewayVpcAttachment } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnTransitGatewayVpcAttachmentConfiguration passed to the constructor as CfnTransitGatewayVpcAttachmentProps.
subnetIdsRequiredstring[]The IDs of the subnets.
transitGatewayIdRequiredstring | ITransitGatewayRefThe ID of the transit gateway.
vpcIdRequiredstringThe ID of the VPC.
addSubnetIdsOptionalstring[]The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.
optionsOptionalanyThe VPC attachment options.
removeSubnetIdsOptionalstring[]The IDs of one or more subnets to remove.
tagsOptionalCfnTag[]The tags for the VPC attachment.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2AWS::EC2::TransitGatewayVpcAttachment