@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, 04:45 UTC

main
ts 36 lines 1.25 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 `DeleteClusterSnapshot` operation (IAM action
7 * `redshift:DeleteClusterSnapshot`).
8 *
9 * Deletes a manual cluster snapshot by identifier — the cleanup half of a
10 * snapshot-rotation job (automated snapshots cannot be deleted; they expire
11 * with the retention period). Provide the implementation with
12 * `Effect.provide(AWS.Redshift.DeleteClusterSnapshotHttp)`.
13 * ### Managing Snapshots
14 * **Example:** Delete an Expired Manual Snapshot
15 * ```typescript
16 * const deleteClusterSnapshot = yield* AWS.Redshift.DeleteClusterSnapshot();
17 *
18 * yield* deleteClusterSnapshot({
19 * SnapshotIdentifier: expired.SnapshotIdentifier!,
20 * });
21 * ```
22 *
23 * @binding
24 */
25 export interface DeleteClusterSnapshot extends Binding.Service<
26 DeleteClusterSnapshot,
27 "AWS.Redshift.DeleteClusterSnapshot",
28 () => Effect.Effect<
29 (
30 request: redshift.DeleteClusterSnapshotMessage,
31 ) => Effect.Effect<redshift.DeleteClusterSnapshotResult, redshift.DeleteClusterSnapshotError>
32 >
33 > {}
34 export const DeleteClusterSnapshot = Binding.Service<DeleteClusterSnapshot>(
35 "AWS.Redshift.DeleteClusterSnapshot",
36 );