start_automated_reasoning_policy_test_workflow
¶
start_automated_reasoning_policy_test_workflow(
policy_arn: AutomatedReasoningPolicyArn,
build_workflow_id: AutomatedReasoningPolicyBuildWorkflowId,
*,
config_overrides: Optional[BedrockClientConfig] = None,
test_case_ids: Optional[AutomatedReasoningPolicyTestCaseIdList] = None,
client_request_token: Optional[IdempotencyToken] = None,
) -> StartAutomatedReasoningPolicyTestWorkflowResponse
Initiates a test workflow to validate Automated Reasoning policy tests. The workflow executes the specified tests against the policy and generates validation results.
Parameters:
-
policy_arn(AutomatedReasoningPolicyArn) –The Amazon Resource Name (ARN) of the Automated Reasoning policy to test.
-
build_workflow_id(AutomatedReasoningPolicyBuildWorkflowId) –The build workflow identifier. The build workflow must show a
COMPLETEDstatus before running tests. -
test_case_ids(Optional[AutomatedReasoningPolicyTestCaseIdList], default:None) –The list of test identifiers to run. If not provided, all tests for the policy are run.
-
client_request_token(Optional[IdempotencyToken], default: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 doesn't return an error.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceInUseException–Thrown when attempting to delete or modify a resource that is currently being used by other resources or operations. For example, trying to delete an Automated Reasoning policy that is referenced by an active guardrail.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/bedrock.py
2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 | |