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 |
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
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:
data DeleteVPCPeeringConnection Source
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:
data DeleteVPCPeeringConnectionResponse Source
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.