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.

675 B
Raw Blame
import * as controltower from "@distilled.cloud/aws/controltower";
import * as Layer from "effect/Layer";
import { makeControlTowerHttpBinding } from "./BindingHttp.ts";
import type { EnabledControl } from "./EnabledControl.ts";
import { GetEnabledControl } from "./GetEnabledControl.ts";

export const GetEnabledControlHttp = Layer.effect(
  GetEnabledControl,
  makeControlTowerHttpBinding({
    capability: "GetEnabledControl",
    iamActions: ["controltower:GetEnabledControl"],
    requestKey: "enabledControlIdentifier",
    identifier: (enabledControl: EnabledControl) =>
      enabledControl.enabledControlArn,
    operation: controltower.getEnabledControl,
  }),
);