| 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 |
Network.AWS.EC2.DeleteNetworkInterface
Description
Deletes the specified network interface. You must detach the network interface before you can delete it.
Synopsis
Creating a Request
Arguments
| :: Text | |
| -> DeleteNetworkInterface |
Creates a value of DeleteNetworkInterface with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dninDryRun- 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.dninNetworkInterfaceId- The ID of the network interface.
data DeleteNetworkInterface #
Contains the parameters for DeleteNetworkInterface.
See: deleteNetworkInterface smart constructor.
Instances
Request Lenses
dninDryRun :: Lens' DeleteNetworkInterface (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 .
dninNetworkInterfaceId :: Lens' DeleteNetworkInterface Text #
The ID of the network interface.
Destructuring the Response
deleteNetworkInterfaceResponse :: DeleteNetworkInterfaceResponse #
Creates a value of DeleteNetworkInterfaceResponse with the minimum fields required to make a request.
data DeleteNetworkInterfaceResponse #
See: deleteNetworkInterfaceResponse smart constructor.