@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

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