Skip to content

update_automated_reasoning_policy_test_case

Operation

update_automated_reasoning_policy_test_case

Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.

Parameters:

Name Type Description Default
request UpdateAutomatedReasoningPolicyTestCaseInput | UpdateAutomatedReasoningPolicyTestCaseInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[UpdateAutomatedReasoningPolicyTestCaseInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
UpdateAutomatedReasoningPolicyTestCaseOutput

An instance of UpdateAutomatedReasoningPolicyTestCaseOutput.

update_automated_reasoning_policy_test_case async

Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.

Parameters:

Name Type Description Default
request UpdateAutomatedReasoningPolicyTestCaseInput | UpdateAutomatedReasoningPolicyTestCaseInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None
**kwargs Unpack[UpdateAutomatedReasoningPolicyTestCaseInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
UpdateAutomatedReasoningPolicyTestCaseOutput

An instance of UpdateAutomatedReasoningPolicyTestCaseOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

UpdateAutomatedReasoningPolicyTestCaseInputDict

Bases: TypedDict

Dictionary form of UpdateAutomatedReasoningPolicyTestCaseInput.

Attributes

client_request_token instance-attribute
client_request_token: str | None

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.

This field is autopopulated if not provided.

confidence_threshold instance-attribute
confidence_threshold: float | None

The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.

expected_aggregated_findings_result instance-attribute
expected_aggregated_findings_result: Required[str]

The updated expected result of the Automated Reasoning check.

guard_content instance-attribute
guard_content: Required[str]

The updated content to be validated by the Automated Reasoning policy.

last_updated_at instance-attribute
last_updated_at: Required[datetime]

The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.

policy_arn instance-attribute
policy_arn: Required[str]

The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.

query_content instance-attribute
query_content: str | None

The updated input query or prompt that generated the content.

test_case_id instance-attribute
test_case_id: Required[str]

The unique identifier of the test to update.

UpdateAutomatedReasoningPolicyTestCaseInput dataclass

Bases: _SerdeShape

Dataclass for UpdateAutomatedReasoningPolicyTestCaseInput structure.

Attributes

client_request_token class-attribute instance-attribute
client_request_token: str | None = ...

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.

This field is autopopulated if not provided.

confidence_threshold class-attribute instance-attribute
confidence_threshold: float | None = ...

The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.

expected_aggregated_findings_result class-attribute instance-attribute
expected_aggregated_findings_result: str | None = ...

The updated expected result of the Automated Reasoning check.

guard_content class-attribute instance-attribute
guard_content: str | None = ...

The updated content to be validated by the Automated Reasoning policy.

last_updated_at class-attribute instance-attribute
last_updated_at: datetime | None = ...

The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.

policy_arn class-attribute instance-attribute
policy_arn: str | None = ...

The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.

query_content class-attribute instance-attribute
query_content: str | None = ...

The updated input query or prompt that generated the content.

test_case_id class-attribute instance-attribute
test_case_id: str | None = ...

The unique identifier of the test to update.

Output

UpdateAutomatedReasoningPolicyTestCaseOutput dataclass

Bases: _SerdeShape

Dataclass for UpdateAutomatedReasoningPolicyTestCaseOutput structure.

Attributes

policy_arn instance-attribute
policy_arn: str

The Amazon Resource Name (ARN) of the policy that contains the updated test.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.

test_case_id instance-attribute
test_case_id: str

The unique identifier of the updated test.