Copyright | (c) 2013-2021 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 |
Deletes the specified storage volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API. This operation is only supported in the cached volume and stored volume types. For stored volume gateways, the local disk that was configured as the storage volume is not deleted. You can reuse the local disk to create another storage volume.
Before you delete a volume, make sure there are no iSCSI connections to the volume you are deleting. You should also make sure there is no snapshot in progress. You can use the Amazon Elastic Compute Cloud (Amazon EC2) API to query snapshots on the volume you are deleting and check the snapshot status. For more information, go to DescribeSnapshots in the Amazon Elastic Compute Cloud API Reference.
In the request, you must provide the Amazon Resource Name (ARN) of the storage volume you want to delete.
Synopsis
- data DeleteVolume = DeleteVolume' {}
- newDeleteVolume :: Text -> DeleteVolume
- deleteVolume_volumeARN :: Lens' DeleteVolume Text
- data DeleteVolumeResponse = DeleteVolumeResponse' {
- volumeARN :: Maybe Text
- httpStatus :: Int
- newDeleteVolumeResponse :: Int -> DeleteVolumeResponse
- deleteVolumeResponse_volumeARN :: Lens' DeleteVolumeResponse (Maybe Text)
- deleteVolumeResponse_httpStatus :: Lens' DeleteVolumeResponse Int
Creating a Request
data DeleteVolume Source #
A JSON object containing the DeleteVolumeInput$VolumeARN to delete.
See: newDeleteVolume
smart constructor.
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:volumeARN:DeleteVolume'
, deleteVolume_volumeARN
- The Amazon Resource Name (ARN) of the volume. Use the ListVolumes
operation to return a list of gateway volumes.
Request Lenses
deleteVolume_volumeARN :: Lens' DeleteVolume Text Source #
The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation to return a list of gateway volumes.
Destructuring the Response
data DeleteVolumeResponse Source #
A JSON object containing the Amazon Resource Name (ARN) of the storage volume that was deleted.
See: newDeleteVolumeResponse
smart constructor.
DeleteVolumeResponse' | |
|
Instances
newDeleteVolumeResponse Source #
Create a value of DeleteVolumeResponse
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:volumeARN:DeleteVolume'
, deleteVolumeResponse_volumeARN
- The Amazon Resource Name (ARN) of the storage volume that was deleted.
It is the same ARN you provided in the request.
$sel:httpStatus:DeleteVolumeResponse'
, deleteVolumeResponse_httpStatus
- The response's http status code.
Response Lenses
deleteVolumeResponse_volumeARN :: Lens' DeleteVolumeResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the storage volume that was deleted. It is the same ARN you provided in the request.
deleteVolumeResponse_httpStatus :: Lens' DeleteVolumeResponse Int Source #
The response's http status code.