amazonka-fsx-2.0: Amazon FSx 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.FSx.DeleteVolume

Description

Deletes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume.

Synopsis

Creating a Request

data DeleteVolume Source #

See: newDeleteVolume smart constructor.

Constructors

DeleteVolume' 

Fields

Instances

Instances details
ToJSON DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

ToHeaders DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

ToPath DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

ToQuery DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

AWSRequest DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

Associated Types

type AWSResponse DeleteVolume #

Generic DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

Associated Types

type Rep DeleteVolume :: Type -> Type #

Read DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

Show DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

NFData DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

Methods

rnf :: DeleteVolume -> () #

Eq DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

Hashable DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

type AWSResponse DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

type Rep DeleteVolume Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

type Rep DeleteVolume = D1 ('MetaData "DeleteVolume" "Amazonka.FSx.DeleteVolume" "amazonka-fsx-2.0-6W1DYEEbHPkD4DJvTvpQG4" 'False) (C1 ('MetaCons "DeleteVolume'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "ontapConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeleteVolumeOntapConfiguration))) :*: (S1 ('MetaSel ('Just "openZFSConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeleteVolumeOpenZFSConfiguration)) :*: 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:clientRequestToken:DeleteVolume', deleteVolume_clientRequestToken - Undocumented member.

DeleteVolume, deleteVolume_ontapConfiguration - For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to the backup. To apply tags to the backup, you must have the fsx:TagResource permission.

DeleteVolume, deleteVolume_openZFSConfiguration - For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots.

DeleteVolume, deleteVolume_volumeId - The ID of the volume that you are deleting.

Request Lenses

deleteVolume_ontapConfiguration :: Lens' DeleteVolume (Maybe DeleteVolumeOntapConfiguration) Source #

For Amazon FSx for ONTAP volumes, specify whether to take a final backup of the volume and apply tags to the backup. To apply tags to the backup, you must have the fsx:TagResource permission.

deleteVolume_openZFSConfiguration :: Lens' DeleteVolume (Maybe DeleteVolumeOpenZFSConfiguration) Source #

For Amazon FSx for OpenZFS volumes, specify whether to delete all child volumes and snapshots.

deleteVolume_volumeId :: Lens' DeleteVolume Text Source #

The ID of the volume that you are deleting.

Destructuring the Response

data DeleteVolumeResponse Source #

See: newDeleteVolumeResponse smart constructor.

Constructors

DeleteVolumeResponse' 

Fields

Instances

Instances details
Generic DeleteVolumeResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

Associated Types

type Rep DeleteVolumeResponse :: Type -> Type #

Read DeleteVolumeResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

Show DeleteVolumeResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

NFData DeleteVolumeResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

Methods

rnf :: DeleteVolumeResponse -> () #

Eq DeleteVolumeResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

type Rep DeleteVolumeResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteVolume

type Rep DeleteVolumeResponse = D1 ('MetaData "DeleteVolumeResponse" "Amazonka.FSx.DeleteVolume" "amazonka-fsx-2.0-6W1DYEEbHPkD4DJvTvpQG4" 'False) (C1 ('MetaCons "DeleteVolumeResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "lifecycle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VolumeLifecycle)) :*: S1 ('MetaSel ('Just "ontapResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DeleteVolumeOntapResponse))) :*: (S1 ('MetaSel ('Just "volumeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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:

DeleteVolumeResponse, deleteVolumeResponse_lifecycle - The lifecycle state of the volume being deleted. If the DeleteVolume operation is successful, this value is DELETING.

$sel:ontapResponse:DeleteVolumeResponse', deleteVolumeResponse_ontapResponse - Returned after a DeleteVolume request, showing the status of the delete request.

DeleteVolume, deleteVolumeResponse_volumeId - The ID of the volume that's being deleted.

$sel:httpStatus:DeleteVolumeResponse', deleteVolumeResponse_httpStatus - The response's http status code.

Response Lenses

deleteVolumeResponse_lifecycle :: Lens' DeleteVolumeResponse (Maybe VolumeLifecycle) Source #

The lifecycle state of the volume being deleted. If the DeleteVolume operation is successful, this value is DELETING.

deleteVolumeResponse_ontapResponse :: Lens' DeleteVolumeResponse (Maybe DeleteVolumeOntapResponse) Source #

Returned after a DeleteVolume request, showing the status of the delete request.

deleteVolumeResponse_volumeId :: Lens' DeleteVolumeResponse (Maybe Text) Source #

The ID of the volume that's being deleted.