1import * as DynamoDB from "@distilled.cloud/aws/dynamodb";
2import * as Layer from "effect/Layer";
3import { makeTableHttpBinding } from "./BindingHttp.ts";
4import { ListBackups } from "./ListBackups.ts";
5
6export const ListBackupsHttp = Layer.effect(
7 ListBackups,
8 makeTableHttpBinding({
9 tag: "AWS.DynamoDB.ListBackups",
10 operation: DynamoDB.listBackups,
11 actions: ["dynamodb:ListBackups"],
12 // ListBackups does not support resource-level permissions (the runtime
13 // callable still scopes results to the bound table via TableName).
14 resources: () => ["*"],
15 }),
16);