amazonka-ec2-1.3.3: 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.RejectVPCPeeringConnection

Contents

Description

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. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.

See: AWS API Reference for RejectVPCPeeringConnection.

Synopsis

Creating a Request

rejectVPCPeeringConnection Source

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

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

Request Lenses

rvpcDryRun :: Lens' RejectVPCPeeringConnection (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

rejectVPCPeeringConnectionResponse Source

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

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

Response Lenses

rvpcrsReturn :: Lens' RejectVPCPeeringConnectionResponse (Maybe Bool) Source

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