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

main
ts 33 lines 1.18 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 import type { Cluster } from "./Cluster.ts";
5
6 /**
7 * Runtime binding for the `RebootCluster` operation (IAM action
8 * `redshift:RebootCluster`).
9 *
10 * Reboots the bound {@link Cluster} (a momentary outage while it restarts) —
11 * e.g. an ops function that applies pending static parameter-group changes.
12 * The cluster identifier is injected from the binding. Provide the
13 * implementation with `Effect.provide(AWS.Redshift.RebootClusterHttp)`.
14 * ### Operating a Cluster
15 * **Example:** Reboot to Apply Static Parameters
16 * ```typescript
17 * // init — bind the operation to the cluster
18 * const rebootCluster = yield* AWS.Redshift.RebootCluster(cluster);
19 *
20 * // runtime
21 * yield* rebootCluster();
22 * ```
23 *
24 * @binding
25 */
26 export interface RebootCluster extends Binding.Service<
27 RebootCluster,
28 "AWS.Redshift.RebootCluster",
29 (
30 cluster: Cluster,
31 ) => Effect.Effect<() => Effect.Effect<redshift.RebootClusterResult, redshift.RebootClusterError>>
32 > {}
33 export const RebootCluster = Binding.Service<RebootCluster>("AWS.Redshift.RebootCluster");