Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the peer VPC can delete the VPC peering connection if it's in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state.
Declaration Syntax
C# |
public DeleteVpcPeeringConnectionResponse DeleteVpcPeeringConnection( DeleteVpcPeeringConnectionRequest request )
Parameters
- request (DeleteVpcPeeringConnectionRequest)
- DeleteVpcPeeringConnection request
Return Value
DeleteVpcPeeringConnection Response from the service
Exceptions
Exception | Condition |
---|---|
WebException | |
AmazonEC2Exception |