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.

967 B
Raw Blame
import type * as dataexchange from "@distilled.cloud/aws/dataexchange";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";

/**
 * Runtime binding for `dataexchange:CancelJob`.
 *
 * Cancels a job that has not yet been started (`WAITING` state).
 * Provide the implementation with
 * `Effect.provide(AWS.DataExchange.CancelJobHttp)`.
 * @binding
 * @section Import & Export Jobs
 * @example Cancel A Waiting Job
 * ```typescript
 * const cancelJob = yield* AWS.DataExchange.CancelJob();
 *
 * // runtime
 * yield* cancelJob({ JobId: job.Id! });
 * ```
 */
export interface CancelJob extends Binding.Service<
  CancelJob,
  "AWS.DataExchange.CancelJob",
  () => Effect.Effect<
    (
      request: dataexchange.CancelJobRequest,
    ) => Effect.Effect<
      dataexchange.CancelJobResponse,
      dataexchange.CancelJobError
    >
  >
> {}
export const CancelJob = Binding.Service<CancelJob>(
  "AWS.DataExchange.CancelJob",
);