@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 14 lines 528 Bytes
Raw
1 import * as TSQ from "@distilled.cloud/aws/timestream-query";
2 import * as Layer from "effect/Layer";
3 import { makeQueryTableHttpBinding } from "./BindingHttp.ts";
4 import { PrepareQuery } from "./PrepareQuery.ts";
5
6 export const PrepareQueryHttp = Layer.effect(
7 PrepareQuery,
8 makeQueryTableHttpBinding({
9 tag: "AWS.Timestream.PrepareQuery",
10 operation: TSQ.prepareQuery,
11 // Preparing a query validates it against the tables the SQL references.
12 actions: ["timestream:PrepareQuery", "timestream:Select"],
13 }),
14 );