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.

519 B
Raw Blame
import * as ECS from "@distilled.cloud/aws/ecs";
import * as Layer from "effect/Layer";
import { makeEcsClusterHttpBinding } from "./BindingHttp.ts";
import { StopTask } from "./StopTask.ts";

export const StopTaskHttp = Layer.effect(
  StopTask,
  makeEcsClusterHttpBinding({
    tag: "AWS.ECS.StopTask",
    operation: ECS.stopTask,
    actions: ["ecs:StopTask"],
    // `ecs:StopTask` authorizes against the task resource:
    // arn:aws:ecs:{region}:{account}:task/{clusterName}/*
    resources: ["task"],
  }),
);