Skip to main content

automated_reasoning_policy_test_results

Creates, updates, deletes, gets or lists an automated_reasoning_policy_test_results resource.

Overview

Nameautomated_reasoning_policy_test_results
TypeResource
Idaws.bedrock.automated_reasoning_policy_test_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
aggregated_test_findings_resultstringA summary of all test findings, aggregated to provide an overall assessment of policy quality and correctness. (VALID, INVALID, SATISFIABLE, IMPOSSIBLE, TRANSLATION_AMBIGUOUS, TOO_COMPLEX, NO_TRANSLATION)
policy_arnstringThe Amazon Resource Name (ARN) of the Automated Reasoning policy that was tested. (pattern: <code>arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:[0-9]{12}:automated-reasoning-policy/[a-z0-9]{12}(:([1-9][0-9]{0,11}))?</code>)
test_caseobjectRepresents a test for validating an Automated Reasoning policy. tests contain sample inputs and expected outcomes to verify policy behavior.
test_findingsarrayDetailed findings from the test run, including any issues, violations, or unexpected behaviors discovered.
test_run_resultstringThe overall result of the test run, indicating whether the policy passed or failed validation. (PASSED, FAILED)
test_run_statusstringThe overall status of the test run (e.g., COMPLETED, FAILED, IN_PROGRESS). (NOT_STARTED, SCHEDULED, IN_PROGRESS, COMPLETED, FAILED)
updated_atstring (date-time)The timestamp when the test results were last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_automated_reasoning_policy_test_resultselectpolicy_arn, build_workflow_id, test_case_id, regionRetrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status.
list_automated_reasoning_policy_test_resultsselectpolicy_arn, build_workflow_id, regionnextToken, maxResultsLists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
build_workflow_idstringThe unique identifier of the build workflow whose test results you want to list.
policy_arnstringThe Amazon Resource Name (ARN) of the Automated Reasoning policy whose test results you want to list.
regionstringAWS region (default: us-east-1)
test_case_idstringThe unique identifier of the test for which to retrieve results.
maxResultsintegerThe maximum number of test results to return in a single response. Valid range is 1-100.
nextTokenstringA pagination token from a previous request to continue listing test results from where the previous request left off.

SELECT examples

Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status.

SELECT
aggregated_test_findings_result,
policy_arn,
test_case,
test_findings,
test_run_result,
test_run_status,
updated_at
FROM aws.bedrock.automated_reasoning_policy_test_results
WHERE policy_arn = '{{ policy_arn }}' -- required
AND build_workflow_id = '{{ build_workflow_id }}' -- required
AND test_case_id = '{{ test_case_id }}' -- required
AND region = '{{ region }}' -- required
;