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.

511 B
Raw Blame
import * as batch from "@distilled.cloud/aws/batch";
import * as Layer from "effect/Layer";
import { makeBatchJobHttpBinding } from "./BindingHttp.ts";
import { CancelJob } from "./CancelJob.ts";

export const CancelJobHttp = Layer.effect(
  CancelJob,
  // Job ARNs (arn:…:job/{jobId}) are only known at runtime, so the statement
  // cannot enumerate them at deploy time.
  makeBatchJobHttpBinding({
    tag: "AWS.Batch.CancelJob",
    operation: batch.cancelJob,
    actions: ["batch:CancelJob"],
  }),
);