update_automated_reasoning_policy_test_case
async
¶
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[AsyncBedrockClientConfig] = 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/async_bedrock.py
2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 | |