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.

960 B
Raw Blame
import type * as SVC from "@distilled.cloud/aws/databrew";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { Job } from "./Job.ts";

export interface StopJobRunRequest extends Omit<
  SVC.StopJobRunRequest,
  "Name"
> {}

/**
 * Runtime binding for `databrew:StopJobRun` — cancels a run of the bound
 * DataBrew job that is still starting or running.
 * @binding
 * @section Stopping Job Runs
 * @example Stop a Job Run
 * ```typescript
 * const stopJobRun = yield* AWS.DataBrew.StopJobRun(job);
 *
 * yield* stopJobRun({ RunId: runId });
 * ```
 */
export interface StopJobRun extends Binding.Service<
  StopJobRun,
  "AWS.DataBrew.StopJobRun",
  <J extends Job>(
    job: J,
  ) => Effect.Effect<
    (
      request: StopJobRunRequest,
    ) => Effect.Effect<SVC.StopJobRunResponse, SVC.StopJobRunError>
  >
> {}
export const StopJobRun = Binding.Service<StopJobRun>(
  "AWS.DataBrew.StopJobRun",
);