Show / Hide Table of Contents

Class VPCPeeringConnectionProps

(experimental) Properties to define a VPC peering connection.

Inheritance
object
VPCPeeringConnectionProps
Implements
IVPCPeeringConnectionProps
IVPCPeeringConnectionOptions
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.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public class VPCPeeringConnectionProps : IVPCPeeringConnectionProps, IVPCPeeringConnectionOptions
Syntax (vb)
Public Class VPCPeeringConnectionProps Implements IVPCPeeringConnectionProps, IVPCPeeringConnectionOptions
Remarks

Stability: Experimental

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.Alpha;

             VpcV2 vpcV2;

             var vPCPeeringConnectionProps = new VPCPeeringConnectionProps {
                 AcceptorVpc = vpcV2,
                 RequestorVpc = vpcV2,

                 // the properties below are optional
                 PeerRoleArn = "peerRoleArn",
                 VpcPeeringConnectionName = "vpcPeeringConnectionName"
             };

Synopsis

Constructors

VPCPeeringConnectionProps()

(experimental) Properties to define a VPC peering connection.

Properties

AcceptorVpc

(experimental) The VPC that is accepting the peering connection.

PeerRoleArn

(experimental) The role arn created in the acceptor account.

RequestorVpc

(experimental) The VPC that is requesting the peering connection.

VpcPeeringConnectionName

(experimental) The resource name of the peering connection.

Constructors

VPCPeeringConnectionProps()

(experimental) Properties to define a VPC peering connection.

public VPCPeeringConnectionProps()
Remarks

Stability: Experimental

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.Alpha;

             VpcV2 vpcV2;

             var vPCPeeringConnectionProps = new VPCPeeringConnectionProps {
                 AcceptorVpc = vpcV2,
                 RequestorVpc = vpcV2,

                 // the properties below are optional
                 PeerRoleArn = "peerRoleArn",
                 VpcPeeringConnectionName = "vpcPeeringConnectionName"
             };

Properties

AcceptorVpc

(experimental) The VPC that is accepting the peering connection.

public IVpcV2 AcceptorVpc { get; set; }
Property Value

IVpcV2

Remarks

Stability: Experimental

PeerRoleArn

(experimental) The role arn created in the acceptor account.

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

string

Remarks

Default: - no peerRoleArn needed if not cross account connection

Stability: Experimental

RequestorVpc

(experimental) The VPC that is requesting the peering connection.

public IVpcV2 RequestorVpc { get; set; }
Property Value

IVpcV2

Remarks

Stability: Experimental

VpcPeeringConnectionName

(experimental) The resource name of the peering connection.

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

string

Remarks

Default: - peering connection provisioned without any name

Stability: Experimental

Implements

IVPCPeeringConnectionProps
IVPCPeeringConnectionOptions
Back to top Generated by DocFX