| 1 | import * as DynamoDB from "@distilled.cloud/aws/dynamodb"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeTableHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ListBackups } from "./ListBackups.ts"; |
| 5 | |
| 6 | export 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 | ); |