Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
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.
Synopsis
- data DeleteNetworkInterfacePermission = DeleteNetworkInterfacePermission' {}
- newDeleteNetworkInterfacePermission :: Text -> DeleteNetworkInterfacePermission
- deleteNetworkInterfacePermission_dryRun :: Lens' DeleteNetworkInterfacePermission (Maybe Bool)
- deleteNetworkInterfacePermission_force :: Lens' DeleteNetworkInterfacePermission (Maybe Bool)
- deleteNetworkInterfacePermission_networkInterfacePermissionId :: Lens' DeleteNetworkInterfacePermission Text
- data DeleteNetworkInterfacePermissionResponse = DeleteNetworkInterfacePermissionResponse' {
- return' :: Maybe Bool
- httpStatus :: Int
- newDeleteNetworkInterfacePermissionResponse :: Int -> DeleteNetworkInterfacePermissionResponse
- deleteNetworkInterfacePermissionResponse_return :: Lens' DeleteNetworkInterfacePermissionResponse (Maybe Bool)
- deleteNetworkInterfacePermissionResponse_httpStatus :: Lens' DeleteNetworkInterfacePermissionResponse Int
Creating a Request
data DeleteNetworkInterfacePermission Source #
Contains the parameters for DeleteNetworkInterfacePermission.
See: newDeleteNetworkInterfacePermission
smart constructor.
DeleteNetworkInterfacePermission' | |
|
Instances
newDeleteNetworkInterfacePermission Source #
Create a value of DeleteNetworkInterfacePermission
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:dryRun:DeleteNetworkInterfacePermission'
, deleteNetworkInterfacePermission_dryRun
- 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
.
$sel:force:DeleteNetworkInterfacePermission'
, deleteNetworkInterfacePermission_force
- Specify true
to remove the permission even if the network interface is
attached to an instance.
DeleteNetworkInterfacePermission
, deleteNetworkInterfacePermission_networkInterfacePermissionId
- The ID of the network interface permission.
Request Lenses
deleteNetworkInterfacePermission_dryRun :: 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
.
deleteNetworkInterfacePermission_force :: Lens' DeleteNetworkInterfacePermission (Maybe Bool) Source #
Specify true
to remove the permission even if the network interface is
attached to an instance.
deleteNetworkInterfacePermission_networkInterfacePermissionId :: Lens' DeleteNetworkInterfacePermission Text Source #
The ID of the network interface permission.
Destructuring the Response
data DeleteNetworkInterfacePermissionResponse Source #
Contains the output for DeleteNetworkInterfacePermission.
See: newDeleteNetworkInterfacePermissionResponse
smart constructor.
DeleteNetworkInterfacePermissionResponse' | |
|
Instances
newDeleteNetworkInterfacePermissionResponse Source #
Create a value of DeleteNetworkInterfacePermissionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:return':DeleteNetworkInterfacePermissionResponse'
, deleteNetworkInterfacePermissionResponse_return
- Returns true
if the request succeeds, otherwise returns an error.
$sel:httpStatus:DeleteNetworkInterfacePermissionResponse'
, deleteNetworkInterfacePermissionResponse_httpStatus
- The response's http status code.
Response Lenses
deleteNetworkInterfacePermissionResponse_return :: Lens' DeleteNetworkInterfacePermissionResponse (Maybe Bool) Source #
Returns true
if the request succeeds, otherwise returns an error.
deleteNetworkInterfacePermissionResponse_httpStatus :: Lens' DeleteNetworkInterfacePermissionResponse Int Source #
The response's http status code.