AWS SDK for .NET Documentation
CreateVpcPeeringConnection Method (request)
AmazonAmazon.EC2AmazonEC2ClientCreateVpcPeeringConnection(CreateVpcPeeringConnectionRequest) Did this page help you?   Yes   No    Tell us about it...

Requests a VPC peering connection between two VPCs: a requester VPC that you own and a peer VPC with which to create the connection. The peer VPC can belong to another AWS account. The requester VPC and peer VPC cannot have overlapping CIDR blocks.

The owner of the peer VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.

A CreateVpcPeeringConnection request between VPCs with overlapping CIDR blocks results in the VPC peering connection having a status of failed .

Declaration Syntax
C#
public CreateVpcPeeringConnectionResponse CreateVpcPeeringConnection(
	CreateVpcPeeringConnectionRequest request
)
Parameters
request (CreateVpcPeeringConnectionRequest)
CreateVpcPeeringConnection request
Return Value
CreateVpcPeeringConnection Response from the service
Exceptions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)