Skip to content

DeleteClusterSnapshot

Source: src/AWS/DocDBElastic/DeleteClusterSnapshot.ts

Runtime binding for the DeleteClusterSnapshot operation (IAM action docdb-elastic:DeleteClusterSnapshot).

Deletes a manual elastic-cluster snapshot by ARN — e.g. from a Lambda that prunes on-demand backups past a retention horizon. Provide the implementation with Effect.provide(AWS.DocDBElastic.DeleteClusterSnapshotHttp).

const deleteSnapshot = yield* DocDBElastic.DeleteClusterSnapshot();
const result = yield* deleteSnapshot({ snapshotArn });
// result.snapshot.status → "DELETING"