Skip to content

BedrockClient.list_automated_reasoning_policy_test_cases

rboto-bedrock==0.4.0 · Service index · Types

Model summary (excerpt): Lists tests for an Automated Reasoning policy. We recommend using pagination to ensure that the operation returns quickly and successfully.

Install and imports

python -m pip install "rboto[bedrock]==0.4.0"
from rboto import BedrockClient
from rboto_bedrock.types import (
    ListAutomatedReasoningPolicyTestCasesOutput,
)

Signature

async def list_automated_reasoning_policy_test_cases(
    *,
    policy_arn: str,
    next_token: str | None = None,
    max_results: int | None = None,
) -> ListAutomatedReasoningPolicyTestCasesOutput: ...

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)
policy_arn Yes The Amazon Resource Name (ARN) of the Automated Reasoning policy for which to list tests.
next_token No The pagination token from a previous request to retrieve the next page of results.
max_results No The maximum number of tests to return in a single call.

Output

ListAutomatedReasoningPolicyTestCasesOutput.

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
test_cases list[AutomatedReasoningPolicyTestCaseOutput] Always present AutomatedReasoningPolicyTestCaseOutput
next_token str | None 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.

ListAutomatedReasoningPolicyTestCasesOutput

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

Pagination and streaming

client.paginators.list_automated_reasoning_policy_test_cases(...) accepts the same arguments and returns AsyncIterator[ListAutomatedReasoningPolicyTestCasesOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: max_results.

No output stream.

Errors

Import from rboto_bedrock.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