sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Glue/ GetPartitionsHttp.ts

import * as glue from "@distilled.cloud/aws/glue";
import * as Layer from "effect/Layer";
import { makeGlueTableHttpBinding } from "./BindingHttp.ts";
import { GetPartitions } from "./GetPartitions.ts";

export const GetPartitionsHttp = Layer.effect(
  GetPartitions,
  makeGlueTableHttpBinding({
    tag: "AWS.Glue.GetPartitions",
    operation: glue.getPartitions,
    actions: ["glue:GetPartitions"],
    tableNameKey: "TableName",
  }),
);