Class VPCPeeringConnectionProps
(experimental) Properties to define a VPC peering connection.
Inherited Members
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
Remarks
Stability: Experimental
PeerRoleArn
(experimental) The role arn created in the acceptor account.
public string? PeerRoleArn { get; set; }
Property Value
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
Remarks
Stability: Experimental
VpcPeeringConnectionName
(experimental) The resource name of the peering connection.
public string? VpcPeeringConnectionName { get; set; }
Property Value
Remarks
Default: - peering connection provisioned without any name
Stability: Experimental