| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
- data DeleteSnapshot = DeleteSnapshot' {}
- newDeleteSnapshot :: Text -> DeleteSnapshot
- deleteSnapshot_clientRequestToken :: Lens' DeleteSnapshot (Maybe Text)
- deleteSnapshot_snapshotId :: Lens' DeleteSnapshot Text
- data DeleteSnapshotResponse = DeleteSnapshotResponse' {}
- newDeleteSnapshotResponse :: Int -> DeleteSnapshotResponse
- deleteSnapshotResponse_lifecycle :: Lens' DeleteSnapshotResponse (Maybe SnapshotLifecycle)
- deleteSnapshotResponse_snapshotId :: Lens' DeleteSnapshotResponse (Maybe Text)
- deleteSnapshotResponse_httpStatus :: Lens' DeleteSnapshotResponse Int
Creating a Request
data DeleteSnapshot Source #
See: newDeleteSnapshot smart constructor.
Constructors
| DeleteSnapshot' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteSnapshot |
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_clientRequestToken :: Lens' DeleteSnapshot (Maybe Text) Source #
Undocumented member.
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
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.
deleteSnapshotResponse_snapshotId :: Lens' DeleteSnapshotResponse (Maybe Text) Source #
The ID of the deleted snapshot.
deleteSnapshotResponse_httpStatus :: Lens' DeleteSnapshotResponse Int Source #
The response's http status code.