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

main
ts 33 lines 1.1 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 import type { DBCluster } from "./DBCluster.ts";
5
6 /**
7 * Runtime binding for the `StopDBCluster` operation (IAM action
8 * `rds:StopDBCluster`).
9 *
10 * Stops the bound {@link DBCluster} — e.g. an ops function that parks a
11 * development cluster overnight to save cost. The cluster identifier is
12 * injected from the binding. Provide the implementation with
13 * `Effect.provide(AWS.RDS.StopDBClusterHttp)`.
14 * ### Operating a Cluster
15 * **Example:** Stop a Running Cluster
16 * ```typescript
17 * // init — bind the operation to the cluster
18 * const stopDBCluster = yield* AWS.RDS.StopDBCluster(cluster);
19 *
20 * // runtime
21 * yield* stopDBCluster();
22 * ```
23 *
24 * @binding
25 */
26 export interface StopDBCluster extends Binding.Service<
27 StopDBCluster,
28 "AWS.RDS.StopDBCluster",
29 (
30 cluster: DBCluster,
31 ) => Effect.Effect<() => Effect.Effect<rds.StopDBClusterResult, rds.StopDBClusterError>>
32 > {}
33 export const StopDBCluster = Binding.Service<StopDBCluster>("AWS.RDS.StopDBCluster");