Class VPCPeeringConnectionProps
(experimental) Properties to define a VPC peering connection.
Inheritance
Namespace: Amazon.CDK.AWS.ec2.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public class VPCPeeringConnectionProps : Object, IVPCPeeringConnectionProps, IVPCPeeringConnectionOptions
Syntax (vb)
Public Class VPCPeeringConnectionProps
Inherits Object
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
VPCPeering |
Properties
Acceptor |
(experimental) The VPC that is accepting the peering connection. |
Peer |
(experimental) The role arn created in the acceptor account. |
Requestor |
(experimental) The VPC that is requesting the peering connection. |
Vpc |
(experimental) The resource name of the peering connection. |
Constructors
VPCPeeringConnectionProps()
public VPCPeeringConnectionProps()
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
System.
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
System.
Remarks
Default: - peering connection provisioned without any name
Stability: Experimental