Skip to content
v2.275.0

CfnTransitGatewayAttachmentProps Struct ​

Properties for defining a CfnTransitGatewayAttachment.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';

declare const options: any;
const cfnTransitGatewayAttachmentProps: ec2.CfnTransitGatewayAttachmentProps = {
  subnetIds: ['subnetIds'],
  transitGatewayId: 'transitGatewayId',
  vpcId: 'vpcId',

  // the properties below are optional
  options: options,
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

optionsoptionalanyoptionsoptionalAnyoptionsoptionalObjectOptionsoptionalobjectOptionsoptionalinterface{}#
The VPC attachment options.
subnetIdsstring | ISubnetRef[]subnet_idstyping.List[typing.Union[str, ISubnetRef]]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]interface{}required#
The IDs of one or more subnets.

You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The tags for the attachment.
transitGatewayIdstring | ITransitGatewayReftransit_gateway_idtyping.Union[str, ITransitGatewayRef]transitGatewayIdStringTransitGatewayIdstringTransitGatewayIdinterface{}required#
The ID of the transit gateway.
vpcIdstring | IVPCRefvpc_idtyping.Union[str, IVPCRef]vpcIdStringVpcIdstringVpcIdinterface{}required#
The ID of the VPC.