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).
Managing Snapshots
Section titled “Managing Snapshots”// init — bind the operation to the directoryconst describeSnapshots = yield* AWS.DirectoryService.DescribeSnapshots(directory);
// runtimeconst { Snapshots } = yield* describeSnapshots();for (const snapshot of Snapshots ?? []) { console.log(snapshot.SnapshotId, snapshot.Status);}