Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 active
state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance
state. You cannot delete a VPC peering connection that's in the failed
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
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:
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 Source #
Contains the parameters for DeleteVpcPeeringConnection.
See: deleteVPCPeeringConnection
smart constructor.
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
.
dvpcVPCPeeringConnectionId :: Lens' DeleteVPCPeeringConnection Text Source #
The ID of the VPC peering connection.
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:
dvpcrsReturn
- Returnstrue
if the request succeeds; otherwise, it returns an error.dvpcrsResponseStatus
- -- | The response status code.
data DeleteVPCPeeringConnectionResponse Source #
Contains the output of DeleteVpcPeeringConnection.
See: deleteVPCPeeringConnectionResponse
smart constructor.
Response Lenses
dvpcrsReturn :: Lens' DeleteVPCPeeringConnectionResponse (Maybe Bool) Source #
Returns true
if the request succeeds; otherwise, it returns an error.
dvpcrsResponseStatus :: Lens' DeleteVPCPeeringConnectionResponse Int Source #
- - | The response status code.