interface CfnTransitGatewayAttachmentProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.CfnTransitGatewayAttachmentProps |
Java | software.amazon.awscdk.services.ec2.CfnTransitGatewayAttachmentProps |
Python | aws_cdk.aws_ec2.CfnTransitGatewayAttachmentProps |
TypeScript | @aws-cdk/aws-ec2 » CfnTransitGatewayAttachmentProps |
Properties for defining a CfnTransitGatewayAttachment
.
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 cfnTransitGatewayAttachmentProps: ec2.CfnTransitGatewayAttachmentProps = {
subnetIds: ['subnetIds'],
transitGatewayId: 'transitGatewayId',
vpcId: 'vpcId',
// the properties below are optional
options: options,
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
subnet | string[] | The IDs of one or more subnets. |
transit | string | The ID of the transit gateway. |
vpc | string | The ID of the VPC. |
options? | any | The VPC attachment options, in JSON or YAML. |
tags? | Cfn [] | The tags for the attachment. |
subnetIds
Type:
string[]
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.
transitGatewayId
Type:
string
The ID of the transit gateway.
vpcId
Type:
string
The ID of the VPC.
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
.
tags?
Type:
Cfn
[]
(optional)
The tags for the attachment.