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.DeleteSnapshot

Description

Deletes an Amazon FSx for OpenZFS snapshot. After deletion, the snapshot no longer exists, and its data is gone. Deleting a snapshot doesn't affect snapshots stored in a file system backup.

The DeleteSnapshot operation returns instantly. The snapshot appears with the lifecycle status of DELETING until the deletion is complete.

Synopsis

Creating a Request

data DeleteSnapshot Source #

See: newDeleteSnapshot smart constructor.

Constructors

DeleteSnapshot' 

Fields

Instances

Instances details
ToJSON DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

ToHeaders DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

ToPath DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

ToQuery DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

AWSRequest DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

Associated Types

type AWSResponse DeleteSnapshot #

Generic DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

Associated Types

type Rep DeleteSnapshot :: Type -> Type #

Read DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

Show DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

NFData DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

Methods

rnf :: DeleteSnapshot -> () #

Eq DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

Hashable DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

type AWSResponse DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

type Rep DeleteSnapshot Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

type Rep DeleteSnapshot = D1 ('MetaData "DeleteSnapshot" "Amazonka.FSx.DeleteSnapshot" "amazonka-fsx-2.0-6W1DYEEbHPkD4DJvTvpQG4" 'False) (C1 ('MetaCons "DeleteSnapshot'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteSnapshot Source #

Create a value of DeleteSnapshot 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:DeleteSnapshot', deleteSnapshot_clientRequestToken - Undocumented member.

DeleteSnapshot, deleteSnapshot_snapshotId - The ID of the snapshot that you want to delete.

Request Lenses

deleteSnapshot_snapshotId :: Lens' DeleteSnapshot Text Source #

The ID of the snapshot that you want to delete.

Destructuring the Response

data DeleteSnapshotResponse Source #

See: newDeleteSnapshotResponse smart constructor.

Constructors

DeleteSnapshotResponse' 

Fields

Instances

Instances details
Generic DeleteSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

Associated Types

type Rep DeleteSnapshotResponse :: Type -> Type #

Read DeleteSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

Show DeleteSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

NFData DeleteSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

Methods

rnf :: DeleteSnapshotResponse -> () #

Eq DeleteSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

type Rep DeleteSnapshotResponse Source # 
Instance details

Defined in Amazonka.FSx.DeleteSnapshot

type Rep DeleteSnapshotResponse = D1 ('MetaData "DeleteSnapshotResponse" "Amazonka.FSx.DeleteSnapshot" "amazonka-fsx-2.0-6W1DYEEbHPkD4DJvTvpQG4" 'False) (C1 ('MetaCons "DeleteSnapshotResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "lifecycle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SnapshotLifecycle)) :*: (S1 ('MetaSel ('Just "snapshotId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDeleteSnapshotResponse Source #

Create a value of DeleteSnapshotResponse 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:

DeleteSnapshotResponse, deleteSnapshotResponse_lifecycle - The lifecycle status of the snapshot. If the DeleteSnapshot operation is successful, this status is DELETING.

DeleteSnapshot, deleteSnapshotResponse_snapshotId - The ID of the deleted snapshot.

$sel:httpStatus:DeleteSnapshotResponse', deleteSnapshotResponse_httpStatus - The response's http status code.

Response Lenses

deleteSnapshotResponse_lifecycle :: Lens' DeleteSnapshotResponse (Maybe SnapshotLifecycle) Source #

The lifecycle status of the snapshot. If the DeleteSnapshot operation is successful, this status is DELETING.