update_automated_reasoning_policy_test_case
¶
update_automated_reasoning_policy_test_case(
policy_arn: AutomatedReasoningPolicyArn,
test_case_id: AutomatedReasoningPolicyTestCaseId,
guard_content: AutomatedReasoningPolicyTestGuardContent,
last_updated_at: Timestamp,
expected_aggregated_findings_result: AutomatedReasoningCheckResult,
*,
config_overrides: Optional[BedrockClientConfig] = None,
query_content: Optional[AutomatedReasoningPolicyTestQueryContent] = None,
confidence_threshold: Optional[AutomatedReasoningCheckTranslationConfidence] = None,
client_request_token: Optional[IdempotencyToken] = None,
) -> UpdateAutomatedReasoningPolicyTestCaseResponse
Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.
Parameters:
-
policy_arn(AutomatedReasoningPolicyArn) –The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.
-
test_case_id(AutomatedReasoningPolicyTestCaseId) –The unique identifier of the test to update.
-
guard_content(AutomatedReasoningPolicyTestGuardContent) –The updated content to be validated by the Automated Reasoning policy.
-
query_content(Optional[AutomatedReasoningPolicyTestQueryContent], default:None) –The updated input query or prompt that generated the content.
-
last_updated_at(Timestamp) –The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.
-
expected_aggregated_findings_result(AutomatedReasoningCheckResult) –The updated expected result of the Automated Reasoning check.
-
confidence_threshold(Optional[AutomatedReasoningCheckTranslationConfidence], default:None) –The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.
-
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 does not return an error.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–Error occurred because of a conflict while performing an operation.
-
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
2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 | |