CfnVPCPeeringConnectionProps

class aws_cdk.aws_ec2.CfnVPCPeeringConnectionProps(*, peer_vpc_id, vpc_id, peer_owner_id=None, peer_region=None, peer_role_arn=None, tags=None)

Bases: object

Properties for defining a CfnVPCPeeringConnection.

Parameters:
  • peer_vpc_id (str) – The ID of the VPC with which you are creating the VPC peering connection. You must specify this parameter in the request.

  • vpc_id (str) – The ID of the VPC.

  • peer_owner_id (Optional[str]) – The AWS account ID of the owner of the accepter VPC. Default: Your AWS account ID

  • peer_region (Optional[str]) – The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request. Default: The Region in which you make the request.

  • peer_role_arn (Optional[str]) – The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account. This is required when you are peering a VPC in a different AWS account.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – Any tags assigned to the resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html

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_vPCPeering_connection_props = ec2.CfnVPCPeeringConnectionProps(
    peer_vpc_id="peerVpcId",
    vpc_id="vpcId",

    # the properties below are optional
    peer_owner_id="peerOwnerId",
    peer_region="peerRegion",
    peer_role_arn="peerRoleArn",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

peer_owner_id

The AWS account ID of the owner of the accepter VPC.

Default: Your AWS account ID

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peerownerid

peer_region

The Region code for the accepter VPC, if the accepter VPC is located in a Region other than the Region in which you make the request.

Default: The Region in which you make the request.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peerregion

peer_role_arn

The Amazon Resource Name (ARN) of the VPC peer role for the peering connection in another AWS account.

This is required when you are peering a VPC in a different AWS account.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peerrolearn

peer_vpc_id

The ID of the VPC with which you are creating the VPC peering connection.

You must specify this parameter in the request.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-peervpcid

tags

Any tags assigned to the resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-tags

vpc_id

The ID of the VPC.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcpeeringconnection.html#cfn-ec2-vpcpeeringconnection-vpcid