interface CfnTransitGatewayVpcAttachmentProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.CfnTransitGatewayVpcAttachmentProps |
Java | software.amazon.awscdk.services.ec2.CfnTransitGatewayVpcAttachmentProps |
Python | aws_cdk.aws_ec2.CfnTransitGatewayVpcAttachmentProps |
TypeScript | @aws-cdk/aws-ec2 » CfnTransitGatewayVpcAttachmentProps |
Properties for defining a CfnTransitGatewayVpcAttachment
.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
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
Name | Type | Description |
---|---|---|
subnet | string[] | The IDs of the subnets. |
transit | string | The ID of the transit gateway. |
vpc | string | The ID of the VPC. |
add | string[] | The IDs of one or more subnets to add. |
options? | any | The VPC attachment options, in JSON or YAML. |
remove | string[] | The IDs of one or more subnets to remove. |
tags? | Cfn [] | The tags for the VPC attachment. |
subnetIds
Type:
string[]
The IDs of the subnets.
transitGatewayId
Type:
string
The ID of the transit gateway.
vpcId
Type:
string
The ID of the VPC.
addSubnetIds?
Type:
string[]
(optional)
The IDs of one or more subnets to add.
You can specify at most one subnet per Availability Zone.
options?
Type:
any
(optional)
The VPC attachment options, in JSON or YAML.
ApplianceModeSupport
- Set toenable
ordisable
. The default isdisable
.DnsSupport
- Set toenable
ordisable
. The default isenable
.Ipv6Support
- Set toenable
ordisable
. The default isdisable
.
removeSubnetIds?
Type:
string[]
(optional)
The IDs of one or more subnets to remove.
tags?
Type:
Cfn
[]
(optional)
The tags for the VPC attachment.