automated_reasoning_policy_test_results
Creates, updates, deletes, gets or lists an automated_reasoning_policy_test_results resource.
Overview
| Name | automated_reasoning_policy_test_results |
| Type | Resource |
| Id | aws.bedrock.automated_reasoning_policy_test_results |
Fields
The following fields are returned by SELECT queries:
- get_automated_reasoning_policy_test_result
- list_automated_reasoning_policy_test_results
| Name | Datatype | Description |
|---|---|---|
aggregated_test_findings_result | string | A 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_arn | string | The 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_case | object | Represents a test for validating an Automated Reasoning policy. tests contain sample inputs and expected outcomes to verify policy behavior. |
test_findings | array | Detailed findings from the test run, including any issues, violations, or unexpected behaviors discovered. |
test_run_result | string | The overall result of the test run, indicating whether the policy passed or failed validation. (PASSED, FAILED) |
test_run_status | string | The overall status of the test run (e.g., COMPLETED, FAILED, IN_PROGRESS). (NOT_STARTED, SCHEDULED, IN_PROGRESS, COMPLETED, FAILED) |
updated_at | string (date-time) | The timestamp when the test results were last updated. |
| Name | Datatype | Description |
|---|---|---|
aggregated_test_findings_result | string | A 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_arn | string | The 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_case | object | Represents a test for validating an Automated Reasoning policy. tests contain sample inputs and expected outcomes to verify policy behavior. |
test_findings | array | Detailed findings from the test run, including any issues, violations, or unexpected behaviors discovered. |
test_run_result | string | The overall result of the test run, indicating whether the policy passed or failed validation. (PASSED, FAILED) |
test_run_status | string | The overall status of the test run (e.g., COMPLETED, FAILED, IN_PROGRESS). (NOT_STARTED, SCHEDULED, IN_PROGRESS, COMPLETED, FAILED) |
updated_at | string (date-time) | The timestamp when the test results were last updated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_automated_reasoning_policy_test_result | select | policy_arn, build_workflow_id, test_case_id, region | Retrieves the test result for a specific Automated Reasoning policy test. Returns detailed validation findings and execution status. | |
list_automated_reasoning_policy_test_results | select | policy_arn, build_workflow_id, region | nextToken, maxResults | Lists 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.
| Name | Datatype | Description |
|---|---|---|
build_workflow_id | string | The unique identifier of the build workflow whose test results you want to list. |
policy_arn | string | The Amazon Resource Name (ARN) of the Automated Reasoning policy whose test results you want to list. |
region | string | AWS region (default: us-east-1) |
test_case_id | string | The unique identifier of the test for which to retrieve results. |
maxResults | integer | The maximum number of test results to return in a single response. Valid range is 1-100. |
nextToken | string | A pagination token from a previous request to continue listing test results from where the previous request left off. |
SELECT examples
- get_automated_reasoning_policy_test_result
- list_automated_reasoning_policy_test_results
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
;
Lists test results for an Automated Reasoning policy, showing how the policy performed against various test scenarios and validation checks.
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 region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
;