1import type * as rds from "@distilled.cloud/aws/rds";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
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 */
26export interface CopyDBClusterSnapshot extends Binding.Service<
27 CopyDBClusterSnapshot,
28 "AWS.RDS.CopyDBClusterSnapshot",
29 () => Effect.Effect<
30 (
31 request: rds.CopyDBClusterSnapshotMessage,
32 ) => Effect.Effect<
33 rds.CopyDBClusterSnapshotResult,
34 rds.CopyDBClusterSnapshotError
35 >
36 >
37> {}
38export const CopyDBClusterSnapshot = Binding.Service<CopyDBClusterSnapshot>(
39 "AWS.RDS.CopyDBClusterSnapshot",
40);