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