@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 36 lines 1.32 KB
Raw
1 import type * as docdbelastic from "@distilled.cloud/aws/docdb-elastic";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `GetClusterSnapshot` operation (IAM action
7 * `docdb-elastic:GetClusterSnapshot`).
8 *
9 * Reads one elastic-cluster snapshot by ARN — status, source cluster, and
10 * the network/encryption configuration captured at snapshot time. Snapshot
11 * ARNs embed server-generated UUIDs and are runtime data, so the grant spans
12 * the account's snapshots. Provide the implementation with
13 * `Effect.provide(AWS.DocDBElastic.GetClusterSnapshotHttp)`.
14 * ### Managing Snapshots
15 * **Example:** Poll a Snapshot Until Available
16 * ```typescript
17 * const getSnapshot = yield* DocDBElastic.GetClusterSnapshot();
18 *
19 * const result = yield* getSnapshot({ snapshotArn });
20 * // result.snapshot.status → "AVAILABLE"
21 * ```
22 *
23 * @binding
24 */
25 export interface GetClusterSnapshot extends Binding.Service<
26 GetClusterSnapshot,
27 "AWS.DocDBElastic.GetClusterSnapshot",
28 () => Effect.Effect<
29 (
30 request: docdbelastic.GetClusterSnapshotInput,
31 ) => Effect.Effect<docdbelastic.GetClusterSnapshotOutput, docdbelastic.GetClusterSnapshotError>
32 >
33 > {}
34 export const GetClusterSnapshot = Binding.Service<GetClusterSnapshot>(
35 "AWS.DocDBElastic.GetClusterSnapshot",
36 );