sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Timestream/ PrepareQueryHttp.ts

import * as TSQ from "@distilled.cloud/aws/timestream-query";
import * as Layer from "effect/Layer";
import { makeQueryTableHttpBinding } from "./BindingHttp.ts";
import { PrepareQuery } from "./PrepareQuery.ts";

export const PrepareQueryHttp = Layer.effect(
  PrepareQuery,
  makeQueryTableHttpBinding({
    tag: "AWS.Timestream.PrepareQuery",
    operation: TSQ.prepareQuery,
    // Preparing a query validates it against the tables the SQL references.
    actions: ["timestream:PrepareQuery", "timestream:Select"],
  }),
);