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 the specified EBS volume. The volume must be in the available
state (not attached to an instance).
The volume can remain in the deleting
state for several minutes.
For more information, see Delete an Amazon EBS volume in the Amazon Elastic Compute Cloud User Guide.
Synopsis
Creating a Request
data DeleteVolume Source #
See: newDeleteVolume
smart constructor.
DeleteVolume' | |
|
Instances
Create a value of DeleteVolume
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:DeleteVolume'
, deleteVolume_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
.
DeleteVolume
, deleteVolume_volumeId
- The ID of the volume.
Request Lenses
deleteVolume_dryRun :: 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
.
deleteVolume_volumeId :: Lens' DeleteVolume Text Source #
The ID of the volume.
Destructuring the Response
data DeleteVolumeResponse Source #
See: newDeleteVolumeResponse
smart constructor.
Instances
Generic DeleteVolumeResponse Source # | |
Defined in Amazonka.EC2.DeleteVolume type Rep DeleteVolumeResponse :: Type -> Type # from :: DeleteVolumeResponse -> Rep DeleteVolumeResponse x # to :: Rep DeleteVolumeResponse x -> DeleteVolumeResponse # | |
Read DeleteVolumeResponse Source # | |
Defined in Amazonka.EC2.DeleteVolume | |
Show DeleteVolumeResponse Source # | |
Defined in Amazonka.EC2.DeleteVolume showsPrec :: Int -> DeleteVolumeResponse -> ShowS # show :: DeleteVolumeResponse -> String # showList :: [DeleteVolumeResponse] -> ShowS # | |
NFData DeleteVolumeResponse Source # | |
Defined in Amazonka.EC2.DeleteVolume rnf :: DeleteVolumeResponse -> () # | |
Eq DeleteVolumeResponse Source # | |
Defined in Amazonka.EC2.DeleteVolume (==) :: DeleteVolumeResponse -> DeleteVolumeResponse -> Bool # (/=) :: DeleteVolumeResponse -> DeleteVolumeResponse -> Bool # | |
type Rep DeleteVolumeResponse Source # | |
newDeleteVolumeResponse :: DeleteVolumeResponse Source #
Create a value of DeleteVolumeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.