The best way to control Claude Code, Codex and more from any computer or phone

main
ts 39 lines 1.44 KB
Raw
1 import type * as docdb from "@distilled.cloud/aws/docdb";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `DescribeDBClusterSnapshots` operation (IAM
7 * action `rds:DescribeDBClusterSnapshots` — DocumentDB shares the RDS
8 * control plane).
9 *
10 * Lists the account's DocumentDB cluster snapshots (optionally filtered by
11 * cluster or snapshot identifier) with status and creation time embedded —
12 * pairs with `CreateDBClusterSnapshot`/`DeleteDBClusterSnapshot` for backup
13 * automation. Provide the implementation with
14 * `Effect.provide(AWS.DocDB.DescribeDBClusterSnapshotsHttp)`.
15 * ### Managing Snapshots
16 * **Example:** Poll a Snapshot until Available
17 * ```typescript
18 * const describeSnapshots = yield* DocDB.DescribeDBClusterSnapshots();
19 *
20 * const page = yield* describeSnapshots({
21 * DBClusterSnapshotIdentifier: "nightly-2026-07-15",
22 * });
23 * const status = page.DBClusterSnapshots?.[0]?.Status;
24 * ```
25 *
26 * @binding
27 */
28 export interface DescribeDBClusterSnapshots extends Binding.Service<
29 DescribeDBClusterSnapshots,
30 "AWS.DocDB.DescribeDBClusterSnapshots",
31 () => Effect.Effect<
32 (
33 request?: docdb.DescribeDBClusterSnapshotsMessage,
34 ) => Effect.Effect<docdb.DBClusterSnapshotMessage, docdb.DescribeDBClusterSnapshotsError>
35 >
36 > {}
37 export const DescribeDBClusterSnapshots = Binding.Service<DescribeDBClusterSnapshots>(
38 "AWS.DocDB.DescribeDBClusterSnapshots",
39 );