Show / Hide Table of Contents

Class CfnVPCPeeringConnectionProps

Properties for defining a CfnVPCPeeringConnection.

Inheritance
object
CfnVPCPeeringConnectionProps
Implements
ICfnVPCPeeringConnectionProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVPCPeeringConnectionProps : ICfnVPCPeeringConnectionProps
Syntax (vb)
Public Class CfnVPCPeeringConnectionProps Implements ICfnVPCPeeringConnectionProps
Remarks

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

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var cfnVPCPeeringConnectionProps = new CfnVPCPeeringConnectionProps {
                 PeerVpcId = "peerVpcId",
                 VpcId = "vpcId",

                 // the properties below are optional
                 PeerOwnerId = "peerOwnerId",
                 PeerRegion = "peerRegion",
                 PeerRoleArn = "peerRoleArn",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             };

Synopsis

Constructors

CfnVPCPeeringConnectionProps()

Properties for defining a CfnVPCPeeringConnection.

Properties

PeerOwnerId

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

PeerRegion

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.

PeerRoleArn

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

PeerVpcId

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

Tags

Any tags assigned to the resource.

VpcId

The ID of the VPC.

Constructors

CfnVPCPeeringConnectionProps()

Properties for defining a CfnVPCPeeringConnection.

public CfnVPCPeeringConnectionProps()
Remarks

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

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.EC2;

             var cfnVPCPeeringConnectionProps = new CfnVPCPeeringConnectionProps {
                 PeerVpcId = "peerVpcId",
                 VpcId = "vpcId",

                 // the properties below are optional
                 PeerOwnerId = "peerOwnerId",
                 PeerRegion = "peerRegion",
                 PeerRoleArn = "peerRoleArn",
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             };

Properties

PeerOwnerId

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

public string? PeerOwnerId { get; set; }
Property Value

string

Remarks

Default: Your AWS account ID

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

PeerRegion

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.

public string? PeerRegion { get; set; }
Property Value

string

Remarks

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

PeerRoleArn

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

public string? PeerRoleArn { get; set; }
Property Value

string

Remarks

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

PeerVpcId

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

public object PeerVpcId { get; set; }
Property Value

object

Remarks

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

Type union: either string or IVPCRef

Tags

Any tags assigned to the resource.

public ICfnTag[]? Tags { get; set; }
Property Value

ICfnTag[]

Remarks

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

VpcId

The ID of the VPC.

public object VpcId { get; set; }
Property Value

object

Remarks

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

Type union: either string or IVPCRef

Implements

ICfnVPCPeeringConnectionProps
Back to top Generated by DocFX