Skip to content
v2.273.0

CfnTransitGatewayVpcAttachmentProps Struct ​

Properties for defining a CfnTransitGatewayVpcAttachment.

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 cfnTransitGatewayVpcAttachmentProps: ec2.CfnTransitGatewayVpcAttachmentProps = {
  subnetIds: ['subnetIds'],
  transitGatewayId: 'transitGatewayId',
  vpcId: 'vpcId',

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

Properties ​

addSubnetIdsstring[]add_subnet_idstyping.List[str]addSubnetIdsList<String>AddSubnetIdsstring[]AddSubnetIds*[]*string#
The IDs of one or more subnets to add.

You can specify at most one subnet per Availability Zone.

optionsanyoptionsAnyoptionsObjectOptionsobjectOptionsinterface{}#
The VPC attachment options.
removeSubnetIdsstring[]remove_subnet_idstyping.List[str]removeSubnetIdsList<String>RemoveSubnetIdsstring[]RemoveSubnetIds*[]*string#
The IDs of one or more subnets to remove.
subnetIdsstring[]subnet_idstyping.List[str]subnetIdsList<String>SubnetIdsstring[]SubnetIds*[]*stringrequired#
The IDs of the subnets.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
The tags for the VPC attachment.
transitGatewayIdstring | ITransitGatewayReftransit_gateway_idtyping.Union[str, ITransitGatewayRef]transitGatewayIdStringTransitGatewayIdstringTransitGatewayIdinterface{}required#
The ID of the transit gateway.
vpcIdstringvpc_idstrvpcIdStringVpcIdstringVpcId*stringrequired#
The ID of the VPC.

Used as props by ​