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

main
ts 33 lines 1.16 KB
Raw
1 import type * as neptune from "@distilled.cloud/aws/neptune";
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 `StartDBCluster` operation (IAM action
8 * `rds:StartDBCluster`).
9 *
10 * Starts the bound {@link DBCluster} after it was stopped — e.g. an ops
11 * function that wakes a development cluster on a schedule. The cluster
12 * identifier is injected from the binding. Provide the implementation with
13 * `Effect.provide(AWS.Neptune.StartDBClusterHttp)`.
14 * ### Operating a Cluster
15 * **Example:** Start a Stopped Cluster
16 * ```typescript
17 * // init — bind the operation to the cluster
18 * const startDBCluster = yield* AWS.Neptune.StartDBCluster(cluster);
19 *
20 * // runtime
21 * yield* startDBCluster();
22 * ```
23 *
24 * @binding
25 */
26 export interface StartDBCluster extends Binding.Service<
27 StartDBCluster,
28 "AWS.Neptune.StartDBCluster",
29 (
30 cluster: DBCluster,
31 ) => Effect.Effect<() => Effect.Effect<neptune.StartDBClusterResult, neptune.StartDBClusterError>>
32 > {}
33 export const StartDBCluster = Binding.Service<StartDBCluster>("AWS.Neptune.StartDBCluster");