Copyright | (c) 2013-2015 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 |
This operation deletes the specified gateway volume that you previously created using the CreateCachediSCSIVolume or CreateStorediSCSIVolume API. For gateway-stored volumes, 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 gateway 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.
See: AWS API Reference for DeleteVolume.
Creating a Request
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:
data DeleteVolume Source
A JSON object containing the DeleteVolumeInput$VolumeARN to delete.
See: deleteVolume
smart constructor.
Request Lenses
dvVolumeARN :: 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
Creates a value of DeleteVolumeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeleteVolumeResponse Source
A JSON object containing the of the storage volume that was deleted
See: deleteVolumeResponse
smart constructor.
Response Lenses
dvrsVolumeARN :: 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.
dvrsResponseStatus :: Lens' DeleteVolumeResponse Int Source
The response status code.