VPCPeeringConnectionProps
- class aws_cdk.aws_ec2_alpha.VPCPeeringConnectionProps(*, acceptor_vpc, peer_role_arn=None, vpc_peering_connection_name=None, requestor_vpc)
Bases:
VPCPeeringConnectionOptions
(experimental) Properties to define a VPC peering connection.
- Parameters:
acceptor_vpc (
IVpcV2
) – (experimental) The VPC that is accepting the peering connection.peer_role_arn (
Optional
[str
]) – (experimental) The role arn created in the acceptor account. Default: - no peerRoleArn needed if not cross account connectionvpc_peering_connection_name (
Optional
[str
]) – (experimental) The resource name of the peering connection. Default: - peering connection provisioned without any namerequestor_vpc (
IVpcV2
) – (experimental) The VPC that is requesting the peering connection.
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ec2_alpha as ec2_alpha # vpc_v2: ec2_alpha.VpcV2 v_pCPeering_connection_props = ec2_alpha.VPCPeeringConnectionProps( acceptor_vpc=vpc_v2, requestor_vpc=vpc_v2, # the properties below are optional peer_role_arn="peerRoleArn", vpc_peering_connection_name="vpcPeeringConnectionName" )
Attributes
- acceptor_vpc
(experimental) The VPC that is accepting the peering connection.
- Stability:
experimental
- peer_role_arn
(experimental) The role arn created in the acceptor account.
- Default:
no peerRoleArn needed if not cross account connection
- Stability:
experimental
- requestor_vpc
(experimental) The VPC that is requesting the peering connection.
- Stability:
experimental
- vpc_peering_connection_name
(experimental) The resource name of the peering connection.
- Default:
peering connection provisioned without any name
- Stability:
experimental