@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 35 lines 1.12 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 `CopyDBSnapshot` operation (IAM actions
7 * `rds:CopyDBSnapshot` +
8 * `rds:AddTagsToResource`).
9 *
10 * Copies a DB instance 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.CopyDBSnapshotHttp)`.
13 * ### Managing Instance Snapshots
14 * **Example:** Archive an Instance Snapshot
15 * ```typescript
16 * const copyDBSnapshot = yield* AWS.RDS.CopyDBSnapshot();
17 *
18 * yield* copyDBSnapshot({
19 * SourceDBSnapshotIdentifier: snapshotId,
20 * TargetDBSnapshotIdentifier: `archive-${snapshotId}`,
21 * });
22 * ```
23 *
24 * @binding
25 */
26 export interface CopyDBSnapshot extends Binding.Service<
27 CopyDBSnapshot,
28 "AWS.RDS.CopyDBSnapshot",
29 () => Effect.Effect<
30 (
31 request: rds.CopyDBSnapshotMessage,
32 ) => Effect.Effect<rds.CopyDBSnapshotResult, rds.CopyDBSnapshotError>
33 >
34 > {}
35 export const CopyDBSnapshot = Binding.Service<CopyDBSnapshot>("AWS.RDS.CopyDBSnapshot");