FSx / Client / delete_snapshot
delete_snapshot#
- FSx.Client.delete_snapshot(**kwargs)#
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 ofDELETING
until the deletion is complete.See also: AWS API Documentation
Request Syntax
response = client.delete_snapshot( ClientRequestToken='string', SnapshotId='string' )
- Parameters:
ClientRequestToken (string) –
(Optional) An idempotency token for resource creation, in a string of up to 64 ASCII characters. This token is automatically filled on your behalf when you use the Command Line Interface (CLI) or an Amazon Web Services SDK.
This field is autopopulated if not provided.
SnapshotId (string) –
[REQUIRED]
The ID of the snapshot that you want to delete.
- Return type:
dict
- Returns:
Response Syntax
{ 'SnapshotId': 'string', 'Lifecycle': 'PENDING'|'CREATING'|'DELETING'|'AVAILABLE' }
Response Structure
(dict) –
SnapshotId (string) –
The ID of the deleted snapshot.
Lifecycle (string) –
The lifecycle status of the snapshot. If the
DeleteSnapshot
operation is successful, this status isDELETING
.
Exceptions
FSx.Client.exceptions.BadRequest
FSx.Client.exceptions.InternalServerError
FSx.Client.exceptions.SnapshotNotFound