Skip to content

ListClusterSnapshots

Source: src/AWS/DocDBElastic/ListClusterSnapshots.ts

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

Lists the account’s elastic-cluster snapshots (one page per call — nextToken continues), optionally filtered to one cluster’s ARN or to manual/automated snapshots. Provide the implementation with Effect.provide(AWS.DocDBElastic.ListClusterSnapshotsHttp).

const listSnapshots = yield* DocDBElastic.ListClusterSnapshots();
const page = yield* listSnapshots({
clusterArn: cluster.clusterArn,
snapshotType: "manual",
});
for (const snapshot of page.snapshots ?? []) {
yield* Effect.logInfo(`${snapshot.snapshotName}: ${snapshot.status}`);
}