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.

587 B
Raw Blame
import * as DynamoDB from "@distilled.cloud/aws/dynamodb";
import * as Layer from "effect/Layer";
import { makeTableHttpBinding } from "./BindingHttp.ts";
import { ListBackups } from "./ListBackups.ts";

export const ListBackupsHttp = Layer.effect(
  ListBackups,
  makeTableHttpBinding({
    tag: "AWS.DynamoDB.ListBackups",
    operation: DynamoDB.listBackups,
    actions: ["dynamodb:ListBackups"],
    // ListBackups does not support resource-level permissions (the runtime
    // callable still scopes results to the bound table via TableName).
    resources: () => ["*"],
  }),
);