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 |
Network.AWS.EC2.DetachNetworkInterface
Description
Detaches a network interface from an instance.
- detachNetworkInterface :: Text -> DetachNetworkInterface
- data DetachNetworkInterface
- dniForce :: Lens' DetachNetworkInterface (Maybe Bool)
- dniDryRun :: Lens' DetachNetworkInterface (Maybe Bool)
- dniAttachmentId :: Lens' DetachNetworkInterface Text
- detachNetworkInterfaceResponse :: DetachNetworkInterfaceResponse
- data DetachNetworkInterfaceResponse
Creating a Request
Arguments
:: Text | |
-> DetachNetworkInterface |
Creates a value of DetachNetworkInterface
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dniForce
- Specifies whether to force a detachment.dniDryRun
- 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
.dniAttachmentId
- The ID of the attachment.
data DetachNetworkInterface #
Contains the parameters for DetachNetworkInterface.
See: detachNetworkInterface
smart constructor.
Instances
Request Lenses
dniDryRun :: Lens' DetachNetworkInterface (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
.
dniAttachmentId :: Lens' DetachNetworkInterface Text #
The ID of the attachment.
Destructuring the Response
detachNetworkInterfaceResponse :: DetachNetworkInterfaceResponse #
Creates a value of DetachNetworkInterfaceResponse
with the minimum fields required to make a request.
data DetachNetworkInterfaceResponse #
See: detachNetworkInterfaceResponse
smart constructor.