Skip to content

DescribeSnapshots

Source: src/AWS/DirectoryService/DescribeSnapshots.ts

Runtime binding for the DescribeSnapshots operation (IAM action ds:DescribeSnapshots), scoped to one Directory.

Lists the bound directory’s snapshots — id, type (Auto/Manual), status, and start time. The directory id is injected from the binding. Provide the implementation with Effect.provide(AWS.DirectoryService.DescribeSnapshotsHttp).

// init — bind the operation to the directory
const describeSnapshots = yield* AWS.DirectoryService.DescribeSnapshots(directory);
// runtime
const { Snapshots } = yield* describeSnapshots();
for (const snapshot of Snapshots ?? []) {
console.log(snapshot.SnapshotId, snapshot.Status);
}