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 either InternetGatewayId or VpnGatewayId , but not both.

  • vpn_gateway_id (Optional[str]) – The ID of the virtual private gateway. You must specify either InternetGatewayId or VpnGatewayId , but not both.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.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 or VpnGatewayId , but not both.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html#cfn-ec2-vpcgatewayattachment-internetgatewayid

vpc_id

The ID of the VPC.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html#cfn-ec2-vpcgatewayattachment-vpcid

vpn_gateway_id

The ID of the virtual private gateway.

You must specify either InternetGatewayId or VpnGatewayId , but not both.

Link:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc-gateway-attachment.html#cfn-ec2-vpcgatewayattachment-vpngatewayid