@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 37 lines 1.26 KB
Raw
1 import type * as memorydb from "@distilled.cloud/aws/memorydb";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `DescribeSnapshots` operation (IAM action
7 * `memorydb:DescribeSnapshots`).
8 *
9 * Lists the account's cluster snapshots, optionally filtered by cluster or
10 * snapshot name — e.g. verifying a backup completed before a migration.
11 * Provide the implementation with
12 * `Effect.provide(AWS.MemoryDB.DescribeSnapshotsHttp)`.
13 * ### Managing Snapshots
14 * **Example:** List a Cluster's Snapshots
15 * ```typescript
16 * const describeSnapshots = yield* MemoryDB.DescribeSnapshots();
17 *
18 * const page = yield* describeSnapshots({ ClusterName: clusterName });
19 * for (const snapshot of page.Snapshots ?? []) {
20 * yield* Effect.logInfo(`${snapshot.Name}: ${snapshot.Status}`);
21 * }
22 * ```
23 *
24 * @binding
25 */
26 export interface DescribeSnapshots extends Binding.Service<
27 DescribeSnapshots,
28 "AWS.MemoryDB.DescribeSnapshots",
29 () => Effect.Effect<
30 (
31 request?: memorydb.DescribeSnapshotsRequest,
32 ) => Effect.Effect<memorydb.DescribeSnapshotsResponse, memorydb.DescribeSnapshotsError>
33 >
34 > {}
35 export const DescribeSnapshots = Binding.Service<DescribeSnapshots>(
36 "AWS.MemoryDB.DescribeSnapshots",
37 );