| 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 | ); |