CfnVPCGatewayAttachmentProps
- class aws_cdk.aws_ec2.CfnVPCGatewayAttachmentProps(*, vpc_id, internet_gateway_id=None, vpn_gateway_id=None)
Bases:
object
Properties for defining a
CfnVPCGatewayAttachment
.- Parameters:
vpc_id (
str
) – The ID of the VPC.internet_gateway_id (
Optional
[str
]) – The ID of the internet gateway. You must specify eitherInternetGatewayId
orVpnGatewayId
, but not both.vpn_gateway_id (
Optional
[str
]) – The ID of the virtual private gateway. You must specify eitherInternetGatewayId
orVpnGatewayId
, but not both.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ec2 as ec2 cfn_vPCGateway_attachment_props = ec2.CfnVPCGatewayAttachmentProps( vpc_id="vpcId", # the properties below are optional internet_gateway_id="internetGatewayId", vpn_gateway_id="vpnGatewayId" )
Attributes
- internet_gateway_id
The ID of the internet gateway.
You must specify either
InternetGatewayId
orVpnGatewayId
, but not both.
- vpc_id
The ID of the VPC.
- vpn_gateway_id
The ID of the virtual private gateway.
You must specify either
InternetGatewayId
orVpnGatewayId
, but not both.