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.

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

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