amazonka-ec2-1.2.0.1: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.DeleteVolume

Contents

Description

Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

The volume may remain in the deleting state for several minutes.

For more information, see Deleting an Amazon EBS Volume in the Amazon Elastic Compute Cloud User Guide.

See: AWS API Reference for DeleteVolume.

Synopsis

Creating a Request

deleteVolume Source

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:

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.