| 1 | import * as DynamoDB from "@distilled.cloud/aws/dynamodb"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import * as Output from "../../Output.ts"; |
| 4 | import { makeTableIamHttpBinding } from "./BindingHttp.ts"; |
| 5 | import { DescribeExport } from "./DescribeExport.ts"; |
| 6 | |
| 7 | export const DescribeExportHttp = Layer.effect( |
| 8 | DescribeExport, |
| 9 | makeTableIamHttpBinding({ |
| 10 | tag: "AWS.DynamoDB.DescribeExport", |
| 11 | operation: DynamoDB.describeExport, |
| 12 | actions: ["dynamodb:DescribeExport"], |
| 13 | resources: (table) => [Output.interpolate`${table.tableArn}/export/*`], |
| 14 | }), |
| 15 | ); |