1import * as aoss from "@distilled.cloud/aws/opensearchserverless";
2import * as Layer from "effect/Layer";
3import { makeAossCollectionHttpBinding } from "./BindingHttp.ts";
4import { CreateIndex } from "./CreateIndex.ts";
5
6export const CreateIndexHttp = Layer.effect(
7 CreateIndex,
8 makeAossCollectionHttpBinding({
9 tag: "AWS.OpenSearchServerless.CreateIndex",
10 operation: aoss.createIndex,
11 actions: ["aoss:APIAccessAll"],
12 }),
13);