BedrockClient.update_automated_reasoning_policy_test_case
rboto-bedrock==0.4.0 · Service index · Types
Model summary (excerpt): Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
Install and imports
from rboto import BedrockClient
from rboto_bedrock.types import (
AutomatedReasoningCheckResult,
UpdateAutomatedReasoningPolicyTestCaseOutput,
)
Signature
async def update_automated_reasoning_policy_test_case(
*,
policy_arn: str,
test_case_id: str,
guard_content: str,
last_updated_at: str,
expected_aggregated_findings_result: AutomatedReasoningCheckResult,
query_content: str | None = None,
confidence_threshold: float | None = None,
client_request_token: str | None = None,
) -> UpdateAutomatedReasoningPolicyTestCaseOutput: ...
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 that contains the test. |
test_case_id |
Yes | The unique identifier of the test to update. |
guard_content |
Yes | The updated content to be validated by the Automated Reasoning policy. |
last_updated_at |
Yes | The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications. |
expected_aggregated_findings_result |
Yes | The updated expected result of the Automated Reasoning check. |
query_content |
No | The updated input query or prompt that generated the content. |
confidence_threshold |
No | The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed. |
client_request_token |
No | A unique, case-sensitive identifier to ensure that the operation completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. |
Output
UpdateAutomatedReasoningPolicyTestCaseOutput.
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 |
|---|---|---|---|
policy_arn |
str |
Always present | — |
test_case_id |
str |
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.
Related types
AutomatedReasoningCheckResult, UpdateAutomatedReasoningPolicyTestCaseOutput
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.exceptions:
AccessDeniedError, ConflictError, InternalServerError, ResourceInUseError, ResourceNotFoundError, ThrottlingError, ValidationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.