Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1.1 KB
Raw Blame
import type * as rds from "@distilled.cloud/aws/rds";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { DBCluster } from "./DBCluster.ts";

/**
 * Runtime binding for the `StartDBCluster` operation (IAM action
 * `rds:StartDBCluster`).
 *
 * Starts the bound {@link DBCluster} after it was stopped — e.g. an ops
 * function that wakes a development cluster on a schedule. The cluster
 * identifier is injected from the binding. Provide the implementation with
 * `Effect.provide(AWS.RDS.StartDBClusterHttp)`.
 * @binding
 * @section Operating a Cluster
 * @example Start a Stopped Cluster
 * ```typescript
 * // init — bind the operation to the cluster
 * const startDBCluster = yield* AWS.RDS.StartDBCluster(cluster);
 *
 * // runtime
 * yield* startDBCluster();
 * ```
 */
export interface StartDBCluster extends Binding.Service<
  StartDBCluster,
  "AWS.RDS.StartDBCluster",
  (
    cluster: DBCluster,
  ) => Effect.Effect<
    () => Effect.Effect<rds.StartDBClusterResult, rds.StartDBClusterError>
  >
> {}
export const StartDBCluster = Binding.Service<StartDBCluster>(
  "AWS.RDS.StartDBCluster",
);