Skip to content

QBusinessClient.check_document_access

rboto-qbusiness==0.4.0 · Service index · Types

Model summary (excerpt): Verifies if a user has access permissions for a specified document and returns the actual ACL attached to the document. Resolves user access on the document via user aliases and groups when verifying user access.

Install and imports

python -m pip install "rboto[qbusiness]==0.4.0"
from rboto import QBusinessClient
from rboto_qbusiness.types import (
    CheckDocumentAccessOutput,
)

Signature

async def check_document_access(
    *,
    application_id: str,
    index_id: str,
    user_id: str,
    document_id: str,
    data_source_id: str | None = None,
) -> CheckDocumentAccessOutput: ...

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 unique identifier of the application. This is required to identify the specific Amazon Q Business application context for the document access check.
index_id Yes The unique identifier of the index. Used to locate the correct index within the application where the document is stored.
user_id Yes The unique identifier of the user. Used to check the access permissions for this specific user against the document's ACL.
document_id Yes The unique identifier of the document. Specifies which document's access permissions are being checked.
data_source_id No The unique identifier of the data source. Identifies the specific data source from which the document originates. Should not be used when a document is uploaded directly with BatchPutDocument, as no dataSourceId is available or necessary.

Output

CheckDocumentAccessOutput.

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
user_groups list[AssociatedGroupOutput] | None Always present AssociatedGroupOutput
user_aliases list[AssociatedUserOutput] | None Always present AssociatedUserOutput
has_access bool | None Always present —
document_acl DocumentAclOutput | None Always present DocumentAclOutput

| 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.

CheckDocumentAccessOutput

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, InternalServerError, ResourceNotFoundError, ThrottlingError, ValidationError.

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

Service guide · Pinned model