AWS SDK for .NET Documentation
DeleteVpcPeeringConnection Method (request)
Amazon ► Amazon.EC2 ► AmazonEC2Client ► DeleteVpcPeeringConnection(DeleteVpcPeeringConnectionRequest)
Did this page help you? Yes No Tell us about it...

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 |

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