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.

557 B
Raw Blame
import * as DynamoDB from "@distilled.cloud/aws/dynamodb";
import * as Layer from "effect/Layer";
import * as Output from "../../Output.ts";
import { makeTableIamHttpBinding } from "./BindingHttp.ts";
import { DescribeBackup } from "./DescribeBackup.ts";

export const DescribeBackupHttp = Layer.effect(
  DescribeBackup,
  makeTableIamHttpBinding({
    tag: "AWS.DynamoDB.DescribeBackup",
    operation: DynamoDB.describeBackup,
    actions: ["dynamodb:DescribeBackup"],
    resources: (table) => [Output.interpolate`${table.tableArn}/backup/*`],
  }),
);