Class CfnVPCPeeringConnectionProps
Properties for defining a CfnVPCPeeringConnection.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVPCPeeringConnectionProps : ICfnVPCPeeringConnectionProps
Syntax (vb)
Public Class CfnVPCPeeringConnectionProps 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 for defining a |
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
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
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
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
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 object PeerVpcId { get; set; }
Property Value
Remarks
You must specify this parameter in the request.
Type union: either string or IVPCRef
Tags
Any tags assigned to the resource.
public ICfnTag[]? Tags { get; set; }
Property Value
ICfnTag[]
Remarks
VpcId
The ID of the VPC.
public object VpcId { get; set; }