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
C# |
RejectVpcPeeringConnectionResponse RejectVpcPeeringConnection( RejectVpcPeeringConnectionRequest request )
Parameters
- request (RejectVpcPeeringConnectionRequest)
- RejectVpcPeeringConnection request
Return Value
RejectVpcPeeringConnection Response from the service
Exceptions
Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |