Class CfnVPCPeeringConnectionProps
Properties for defining a CfnVPCPeeringConnection
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVPCPeeringConnectionProps : Object, ICfnVPCPeeringConnectionProps
Syntax (vb)
Public Class CfnVPCPeeringConnectionProps
Inherits Object
Implements ICfnVPCPeeringConnectionProps
Remarks
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
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()
public CfnVPCPeeringConnectionProps()
Properties
PeerOwnerId
The AWS account ID of the owner of the accepter VPC.
public string PeerOwnerId { get; set; }
Property Value
System.String
Remarks
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
System.String
Remarks
Default: 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.
public string PeerRoleArn { get; set; }
Property Value
System.String
Remarks
This is required when you are peering a VPC in a different AWS account.
PeerVpcId
The ID of the VPC with which you are creating the VPC peering connection.
public string PeerVpcId { get; set; }
Property Value
System.String
Remarks
You must specify this parameter in the request.
Tags
Any tags assigned to the resource.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
VpcId
The ID of the VPC.
public string VpcId { get; set; }
Property Value
System.String