amazonka-ec2-1.3.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DeleteVPCPeeringConnection

Contents

Description

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.

See: AWS API Reference for DeleteVPCPeeringConnection.

Synopsis

Creating a Request

deleteVPCPeeringConnection Source

Creates a value of DeleteVPCPeeringConnection with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

dvpcDryRun :: Lens' DeleteVPCPeeringConnection (Maybe Bool) Source

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.

Destructuring the Response

deleteVPCPeeringConnectionResponse Source

Creates a value of DeleteVPCPeeringConnectionResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

dvpcrsReturn :: Lens' DeleteVPCPeeringConnectionResponse (Maybe Bool) Source

Returns true if the request succeeds; otherwise, it returns an error.