Skip to content
v2.274.0

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 ​

acceptorVpcIVpcV2acceptor_vpcIVpcV2acceptorVpcIVpcV2AcceptorVpcIVpcV2AcceptorVpcIVpcV2required#
The VPC that is accepting the peering connection.
peerRoleArnoptionalstringpeer_role_arnoptionalstrpeerRoleArnoptionalStringPeerRoleArnoptionalstringPeerRoleArnoptional*string#
The role arn created in the acceptor account.

Default: no peerRoleArn needed if not cross account connection

requestorVpcIVpcV2requestor_vpcIVpcV2requestorVpcIVpcV2RequestorVpcIVpcV2RequestorVpcIVpcV2required#
The VPC that is requesting the peering connection.
vpcPeeringConnectionNameoptionalstringvpc_peering_connection_nameoptionalstrvpcPeeringConnectionNameoptionalStringVpcPeeringConnectionNameoptionalstringVpcPeeringConnectionNameoptional*string#
The resource name of the peering connection.

Default: peering connection provisioned without any name