amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DeleteVolume

Description

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.

Constructors

DeleteVolume' 

Fields

  • dryRun :: Maybe Bool

    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.

  • volumeId :: Text

    The ID of the volume.

Instances

Instances details
ToHeaders DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

ToPath DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

ToQuery DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

AWSRequest DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

Associated Types

type AWSResponse DeleteVolume #

Generic DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

Associated Types

type Rep DeleteVolume :: Type -> Type #

Read DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

Show DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

NFData DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

Methods

rnf :: DeleteVolume -> () #

Eq DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

Hashable DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

type AWSResponse DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

type Rep DeleteVolume Source # 
Instance details

Defined in Amazonka.EC2.DeleteVolume

type Rep DeleteVolume = D1 ('MetaData "DeleteVolume" "Amazonka.EC2.DeleteVolume" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteVolume'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "volumeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteVolume Source #

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.

Destructuring the Response

data DeleteVolumeResponse Source #

See: newDeleteVolumeResponse smart constructor.

Constructors

DeleteVolumeResponse' 

newDeleteVolumeResponse :: DeleteVolumeResponse Source #

Create a value of DeleteVolumeResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.