Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.EC2.DeleteVPCPeeringConnection
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.
- deleteVPCPeeringConnection :: Text -> DeleteVPCPeeringConnection
- data DeleteVPCPeeringConnection
- dvpcDryRun :: Lens' DeleteVPCPeeringConnection (Maybe Bool)
- dvpcVPCPeeringConnectionId :: Lens' DeleteVPCPeeringConnection Text
- deleteVPCPeeringConnectionResponse :: Int -> DeleteVPCPeeringConnectionResponse
- data DeleteVPCPeeringConnectionResponse
- dvpcrsReturn :: Lens' DeleteVPCPeeringConnectionResponse (Maybe Bool)
- dvpcrsResponseStatus :: Lens' DeleteVPCPeeringConnectionResponse Int
Creating a Request
Arguments
:: Text | |
-> DeleteVPCPeeringConnection |
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:
dvpcDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.dvpcVPCPeeringConnectionId
- The ID of the VPC peering connection.
data DeleteVPCPeeringConnection #
Contains the parameters for DeleteVpcPeeringConnection.
See: deleteVPCPeeringConnection
smart constructor.
Instances
Request Lenses
dvpcDryRun :: Lens' DeleteVPCPeeringConnection (Maybe Bool) #
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
.
dvpcVPCPeeringConnectionId :: Lens' DeleteVPCPeeringConnection Text #
The ID of the VPC peering connection.
Destructuring the Response
deleteVPCPeeringConnectionResponse #
Arguments
:: Int | |
-> DeleteVPCPeeringConnectionResponse |
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:
dvpcrsReturn
- Returnstrue
if the request succeeds; otherwise, it returns an error.dvpcrsResponseStatus
- -- | The response status code.
data DeleteVPCPeeringConnectionResponse #
Contains the output of DeleteVpcPeeringConnection.
See: deleteVPCPeeringConnectionResponse
smart constructor.
Instances
Response Lenses
dvpcrsReturn :: Lens' DeleteVPCPeeringConnectionResponse (Maybe Bool) #
Returns true
if the request succeeds; otherwise, it returns an error.
dvpcrsResponseStatus :: Lens' DeleteVPCPeeringConnectionResponse Int #
- - | The response status code.