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 permission for a network interface. By default, you cannot delete the permission if the account for which you're removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment.
- deleteNetworkInterfacePermission :: Text -> DeleteNetworkInterfacePermission
- data DeleteNetworkInterfacePermission
- dnipForce :: Lens' DeleteNetworkInterfacePermission (Maybe Bool)
- dnipDryRun :: Lens' DeleteNetworkInterfacePermission (Maybe Bool)
- dnipNetworkInterfacePermissionId :: Lens' DeleteNetworkInterfacePermission Text
- deleteNetworkInterfacePermissionResponse :: Int -> DeleteNetworkInterfacePermissionResponse
- data DeleteNetworkInterfacePermissionResponse
- dniprsReturn :: Lens' DeleteNetworkInterfacePermissionResponse (Maybe Bool)
- dniprsResponseStatus :: Lens' DeleteNetworkInterfacePermissionResponse Int
Creating a Request
deleteNetworkInterfacePermission Source #
Creates a value of DeleteNetworkInterfacePermission
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dnipForce
- Specifytrue
to remove the permission even if the network interface is attached to an instance.dnipDryRun
- 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
.dnipNetworkInterfacePermissionId
- The ID of the network interface permission.
data DeleteNetworkInterfacePermission Source #
Contains the parameters for DeleteNetworkInterfacePermission.
See: deleteNetworkInterfacePermission
smart constructor.
Request Lenses
dnipForce :: Lens' DeleteNetworkInterfacePermission (Maybe Bool) Source #
Specify true
to remove the permission even if the network interface is attached to an instance.
dnipDryRun :: Lens' DeleteNetworkInterfacePermission (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
.
dnipNetworkInterfacePermissionId :: Lens' DeleteNetworkInterfacePermission Text Source #
The ID of the network interface permission.
Destructuring the Response
deleteNetworkInterfacePermissionResponse Source #
Creates a value of DeleteNetworkInterfacePermissionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dniprsReturn
- Returnstrue
if the request succeeds, otherwise returns an error.dniprsResponseStatus
- -- | The response status code.
data DeleteNetworkInterfacePermissionResponse Source #
Contains the output for DeleteNetworkInterfacePermission.
See: deleteNetworkInterfacePermissionResponse
smart constructor.
Response Lenses
dniprsReturn :: Lens' DeleteNetworkInterfacePermissionResponse (Maybe Bool) Source #
Returns true
if the request succeeds, otherwise returns an error.
dniprsResponseStatus :: Lens' DeleteNetworkInterfacePermissionResponse Int Source #
- - | The response status code.