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

main
ts 37 lines 1.24 KB
Raw
1 import type * as rds from "@distilled.cloud/aws/rds";
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 actions
7 * `rds:CopyDBClusterSnapshot` +
8 * `rds:AddTagsToResource`).
9 *
10 * Copies an Aurora cluster snapshot (e.g. to archive it under a new
11 * identifier or re-encrypt with a different KMS key). Provide the implementation with
12 * `Effect.provide(AWS.RDS.CopyDBClusterSnapshotHttp)`.
13 * ### Managing Cluster Snapshots
14 * **Example:** Archive a Cluster Snapshot
15 * ```typescript
16 * const copyDBClusterSnapshot = yield* AWS.RDS.CopyDBClusterSnapshot();
17 *
18 * yield* copyDBClusterSnapshot({
19 * SourceDBClusterSnapshotIdentifier: snapshotId,
20 * TargetDBClusterSnapshotIdentifier: `archive-${snapshotId}`,
21 * });
22 * ```
23 *
24 * @binding
25 */
26 export interface CopyDBClusterSnapshot extends Binding.Service<
27 CopyDBClusterSnapshot,
28 "AWS.RDS.CopyDBClusterSnapshot",
29 () => Effect.Effect<
30 (
31 request: rds.CopyDBClusterSnapshotMessage,
32 ) => Effect.Effect<rds.CopyDBClusterSnapshotResult, rds.CopyDBClusterSnapshotError>
33 >
34 > {}
35 export const CopyDBClusterSnapshot = Binding.Service<CopyDBClusterSnapshot>(
36 "AWS.RDS.CopyDBClusterSnapshot",
37 );