@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 neptune from "@distilled.cloud/aws/neptune";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `CopyDBClusterSnapshot` operation (IAM action
7 * `rds:CopyDBClusterSnapshot`).
8 *
9 * Copies a Neptune cluster snapshot — e.g. archive a nightly snapshot under
10 * a retention prefix, or copy it for cross-region disaster recovery. Provide
11 * the implementation with
12 * `Effect.provide(AWS.Neptune.CopyDBClusterSnapshotHttp)`.
13 * ### Managing Snapshots
14 * **Example:** Archive a Snapshot
15 * ```typescript
16 * const copyDBClusterSnapshot = yield* AWS.Neptune.CopyDBClusterSnapshot();
17 *
18 * yield* copyDBClusterSnapshot({
19 * SourceDBClusterSnapshotIdentifier: snapshotId,
20 * TargetDBClusterSnapshotIdentifier: `${snapshotId}-archive`,
21 * });
22 * ```
23 *
24 * @binding
25 */
26 export interface CopyDBClusterSnapshot extends Binding.Service<
27 CopyDBClusterSnapshot,
28 "AWS.Neptune.CopyDBClusterSnapshot",
29 () => Effect.Effect<
30 (
31 request?: neptune.CopyDBClusterSnapshotMessage,
32 ) => Effect.Effect<neptune.CopyDBClusterSnapshotResult, neptune.CopyDBClusterSnapshotError>
33 >
34 > {}
35 export const CopyDBClusterSnapshot = Binding.Service<CopyDBClusterSnapshot>(
36 "AWS.Neptune.CopyDBClusterSnapshot",
37 );