Skip to content

QBusinessClient.batch_put_document

rboto-qbusiness==0.4.0 · Service index · Types

Model summary (excerpt): Adds one or more documents to an Amazon Q Business index. You use this API to: ingest your structured and unstructured documents and documents stored in an Amazon S3 bucket into an Amazon Q Business index. add custom attributes to documents in an Amazon Q Business index. attach an access control list to the documents added to an Amazon Q Business index. You can see the progress of the...

Install and imports

python -m pip install "rboto[qbusiness]==0.4.0"
from rboto import QBusinessClient
from collections.abc import Sequence
from rboto_qbusiness.types import (
    BatchPutDocumentOutput,
    Document,
)

Signature

async def batch_put_document(
    *,
    application_id: str,
    index_id: str,
    documents: Sequence[Document],
    role_arn: str | None = None,
    data_source_sync_id: str | None = None,
) -> BatchPutDocumentOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
application_id Yes The identifier of the Amazon Q Business application.
index_id Yes The identifier of the Amazon Q Business index to add the documents to.
documents Yes One or more documents to add to the index. Ensure that the name of your document doesn't contain any confidential information. Amazon Q Business returns document names in chat responses and citations when relevant.
role_arn No The Amazon Resource Name (ARN) of an IAM role with permission to access your S3 bucket.
data_source_sync_id No The identifier of the data source sync during which the documents were added.

Output

BatchPutDocumentOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
failed_documents list[FailedDocumentOutput] | None Always present FailedDocumentOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

BatchPutDocumentOutput, Document

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_qbusiness.exceptions:

AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ServiceQuotaExceededError, ThrottlingError, ValidationError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model