Skip to content

BedrockAgentRuntimeClient.check_ingested_document_acl

rboto-bedrock-agent-runtime==0.4.0 · Service index · Types

Model summary (excerpt): Checks whether a user has access to a specific document by verifying against the ingested access control list (ACL) in a knowledge base. Use this operation to validate that document-level access control is working as expected after ingestion. To use this operation, you must have the bedrock:CheckIngestedDocumentAcl permission.

Install and imports

python -m pip install "rboto[bedrock-agent-runtime]==0.4.0"
from rboto import BedrockAgentRuntimeClient
from rboto_bedrock_agent_runtime.types import (
    CheckIngestedDocumentAclOutput,
    UserContext,
)

Signature

async def check_ingested_document_acl(
    *,
    knowledge_base_id: str,
    data_source_id: str,
    document_id: str,
    user_context: UserContext,
) -> CheckIngestedDocumentAclOutput: ...

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)
knowledge_base_id Yes The unique identifier of the knowledge base that contains the document.
data_source_id Yes The unique identifier of the data source that contains the document.
document_id Yes The unique identifier of the document to check access for.
user_context Yes The context object containing identity information for access control filtering, including user ID and optional group memberships used to evaluate the document access control list (ACL).

Output

CheckIngestedDocumentAclOutput.

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
has_access bool Always present —

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

CheckIngestedDocumentAclOutput, UserContext

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