| 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.DeleteVolume
Description
Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).
For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide .
Synopsis
Creating a Request
Arguments
| :: Text | |
| -> DeleteVolume |
Creates a value of DeleteVolume with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dvvDryRun- 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.dvvVolumeId- The ID of the volume.
data DeleteVolume Source #
Contains the parameters for DeleteVolume.
See: deleteVolume smart constructor.
Instances
Request Lenses
dvvDryRun :: Lens' DeleteVolume (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 .
dvvVolumeId :: Lens' DeleteVolume Text Source #
The ID of the volume.
Destructuring the Response
deleteVolumeResponse :: DeleteVolumeResponse Source #
Creates a value of DeleteVolumeResponse with the minimum fields required to make a request.
data DeleteVolumeResponse Source #
See: deleteVolumeResponse smart constructor.