1import * as TSQ from "@distilled.cloud/aws/timestream-query";
2import * as Layer from "effect/Layer";
3import { makeQueryTableHttpBinding } from "./BindingHttp.ts";
4import { PrepareQuery } from "./PrepareQuery.ts";
5
6export 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);