Experimental
@aws-cdk/aws-ec2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
VPCPeeringConnectionProps Struct
Properties to define a VPC peering connection.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2_alpha from '@aws-cdk/aws-ec2-alpha';
declare const vpcV2: ec2_alpha.VpcV2;
const vPCPeeringConnectionProps: ec2_alpha.VPCPeeringConnectionProps = {
acceptorVpc: vpcV2,
requestorVpc: vpcV2,
// the properties below are optional
peerRoleArn: 'peerRoleArn',
vpcPeeringConnectionName: 'vpcPeeringConnectionName',
};
Properties
The VPC that is accepting the peering connection.
peerRoleArnstringpeer_role_arnstrpeerRoleArnStringPeerRoleArnstringPeerRoleArn*string= no peerRoleArn needed if not cro…#The role arn created in the acceptor account.
default
Default: no peerRoleArn needed if not cross account connection
requestorVpcIVpcV2requestor_vpcIVpcV2requestorVpcIVpcV2RequestorVpcIVpcV2RequestorVpcIVpcV2required#The VPC that is requesting the peering connection.
vpcPeeringConnectionNamestringvpc_peering_connection_namestrvpcPeeringConnectionNameStringVpcPeeringConnectionNamestringVpcPeeringConnectionName*string= peering connection provisioned w…#The resource name of the peering connection.
default
Default: peering connection provisioned without any name