aws-cdk-lib.aws_ec2.CfnVPCGatewayAttachmentProps

interface CfnVPCGatewayAttachmentProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnVPCGatewayAttachmentProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnVPCGatewayAttachmentProps
Javasoftware.amazon.awscdk.services.ec2.CfnVPCGatewayAttachmentProps
Pythonaws_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

NameTypeDescription
vpcIdstringThe ID of the VPC.
internetGatewayId?stringThe ID of the internet gateway.
vpnGatewayId?stringThe 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.