@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 33 lines 1.15 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 { DBInstance } from "./DBInstance.ts";
5
6 /**
7 * Runtime binding for the `StartDBInstance` operation (IAM action
8 * `rds:StartDBInstance`).
9 *
10 * Starts the bound {@link DBInstance} after it was stopped — e.g. an ops
11 * function that wakes a development database on a schedule. The instance
12 * identifier is injected from the binding. Provide the implementation with
13 * `Effect.provide(AWS.RDS.StartDBInstanceHttp)`.
14 * ### Operating an Instance
15 * **Example:** Start a Stopped Instance
16 * ```typescript
17 * // init — bind the operation to the instance
18 * const startDBInstance = yield* AWS.RDS.StartDBInstance(instance);
19 *
20 * // runtime
21 * yield* startDBInstance();
22 * ```
23 *
24 * @binding
25 */
26 export interface StartDBInstance extends Binding.Service<
27 StartDBInstance,
28 "AWS.RDS.StartDBInstance",
29 (
30 instance: DBInstance,
31 ) => Effect.Effect<() => Effect.Effect<rds.StartDBInstanceResult, rds.StartDBInstanceError>>
32 > {}
33 export const StartDBInstance = Binding.Service<StartDBInstance>("AWS.RDS.StartDBInstance");