import type * as qbusiness from "@distilled.cloud/aws/qbusiness"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; import type { Index } from "./SearchIndex.ts"; /** * `BatchPutDocument` request with `applicationId` + `indexId` injected from the bound index. */ export interface BatchPutDocumentRequest extends Omit { } /** * Runtime binding for the `BatchPutDocument` operation (IAM action * `qbusiness:BatchPutDocument`), scoped to one {@link Index}. * * Adds or updates documents in the index directly (the CUSTOM data * source path), with optional access controls and enrichment. * Provide the implementation with * `Effect.provide(AWS.QBusiness.BatchPutDocumentHttp)`. * * ### Document Ingestion * **Example:** Push Documents into an Index * ```typescript * const putDocuments = yield* AWS.QBusiness.BatchPutDocument(index); * * const { failedDocuments } = yield* putDocuments({ * documents: [ * { * id: "welcome", * title: "Welcome", * content: { blob: new TextEncoder().encode("Hello Q!") }, * contentType: "PLAIN_TEXT", * }, * ], * }); * ``` * * @binding */ export interface BatchPutDocument extends Binding.Service Effect.Effect<(request: BatchPutDocumentRequest) => Effect.Effect>> { } export declare const BatchPutDocument: BatchPutDocument; //# sourceMappingURL=BatchPutDocument.d.ts.map