VpcPeeringConnection / Action / delete
delete#
- EC2.VpcPeeringConnection.delete(**kwargs)#
- Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it’s in the - activestate. The owner of the requester VPC can delete a VPC peering connection in the- pending-acceptancestate. You cannot delete a VPC peering connection that’s in the- failedor- rejectedstate.- See also: AWS API Documentation - Request Syntax- response = vpc_peering_connection.delete( DryRun=True|False, ) - Parameters:
- DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is - DryRunOperation. Otherwise, it is- UnauthorizedOperation.
- Return type:
- dict 
- Returns:
- Response Syntax- { 'Return': True|False } - Response Structure- (dict) – - Return (boolean) – - Returns - trueif the request succeeds; otherwise, it returns an error.