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

.NET
Go
Java
Python
TypeScript