interface CfnVPCGatewayAttachmentProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.EC2.CfnVPCGatewayAttachmentProps |
Java | software.amazon.awscdk.services.ec2.CfnVPCGatewayAttachmentProps |
Python | aws_cdk.aws_ec2.CfnVPCGatewayAttachmentProps |
TypeScript | @aws-cdk/aws-ec2 » CfnVPCGatewayAttachmentProps |
Properties for defining a CfnVPCGatewayAttachment.
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';
const cfnVPCGatewayAttachmentProps: ec2.CfnVPCGatewayAttachmentProps = {
vpcId: 'vpcId',
// the properties below are optional
internetGatewayId: 'internetGatewayId',
vpnGatewayId: 'vpnGatewayId',
};
Properties
| Name | Type | Description |
|---|---|---|
| vpc | string | The ID of the VPC. |
| internet | string | The ID of the internet gateway. |
| vpn | string | The ID of the virtual private gateway. |
vpcId
Type:
string
The ID of the VPC.
internetGatewayId?
Type:
string
(optional)
The ID of the internet gateway.
You must specify either InternetGatewayId or VpnGatewayId , but not both.
vpnGatewayId?
Type:
string
(optional)
The ID of the virtual private gateway.
You must specify either InternetGatewayId or VpnGatewayId , but not both.

.NET
Java
Python
TypeScript