Skip to content

GetDocumentContent

Source: src/AWS/QBusiness/GetDocumentContent.ts

Runtime binding for the GetDocumentContent operation (IAM action qbusiness:GetDocumentContent), scoped to one Index.

Returns a presigned URL for an indexed document’s content, in the raw uploaded format or the extracted text. Provide the implementation with Effect.provide(AWS.QBusiness.GetDocumentContentHttp).

const getContent = yield* AWS.QBusiness.GetDocumentContent(index);
const { presignedUrl } = yield* getContent({ documentId: "welcome" });