Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests.
 Declaration Syntax
 Declaration Syntax| C# | 
RejectVpcPeeringConnectionResponse RejectVpcPeeringConnection( RejectVpcPeeringConnectionRequest request )
 Parameters
 Parameters- request (RejectVpcPeeringConnectionRequest)
- RejectVpcPeeringConnection request
 Return Value
 Return ValueRejectVpcPeeringConnection Response from the service
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| WebException | |
| AmazonEC2Exception |