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

main
ts 37 lines 1.29 KB
Raw
1 import type * as redshift from "@distilled.cloud/aws/redshift";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `CopyClusterSnapshot` operation (IAM action
7 * `redshift:CopyClusterSnapshot`).
8 *
9 * Copies an automated cluster snapshot to a manual one so it survives the
10 * automated retention window — e.g. an archival job that preserves the
11 * nightly snapshot before a risky migration. Provide the implementation with
12 * `Effect.provide(AWS.Redshift.CopyClusterSnapshotHttp)`.
13 * ### Managing Snapshots
14 * **Example:** Preserve an Automated Snapshot
15 * ```typescript
16 * const copyClusterSnapshot = yield* AWS.Redshift.CopyClusterSnapshot();
17 *
18 * yield* copyClusterSnapshot({
19 * SourceSnapshotIdentifier: nightly.SnapshotIdentifier!,
20 * TargetSnapshotIdentifier: `archive-${runId}`,
21 * });
22 * ```
23 *
24 * @binding
25 */
26 export interface CopyClusterSnapshot extends Binding.Service<
27 CopyClusterSnapshot,
28 "AWS.Redshift.CopyClusterSnapshot",
29 () => Effect.Effect<
30 (
31 request: redshift.CopyClusterSnapshotMessage,
32 ) => Effect.Effect<redshift.CopyClusterSnapshotResult, redshift.CopyClusterSnapshotError>
33 >
34 > {}
35 export const CopyClusterSnapshot = Binding.Service<CopyClusterSnapshot>(
36 "AWS.Redshift.CopyClusterSnapshot",
37 );