Bedrock / Client / update_automated_reasoning_policy_test_case

update_automated_reasoning_policy_test_case

Bedrock.Client.update_automated_reasoning_policy_test_case(**kwargs)

Updates an existing Automated Reasoning policy test. You can modify the content, query, expected result, and confidence threshold.

See also: AWS API Documentation

Request Syntax

response = client.update_automated_reasoning_policy_test_case(
    policyArn='string',
    testCaseId='string',
    guardContent='string',
    queryContent='string',
    lastUpdatedAt=datetime(2015, 1, 1),
    expectedAggregatedFindingsResult='VALID'|'INVALID'|'SATISFIABLE'|'IMPOSSIBLE'|'TRANSLATION_AMBIGUOUS'|'TOO_COMPLEX'|'NO_TRANSLATION',
    confidenceThreshold=123.0,
    kmsKeyArn='string',
    clientRequestToken='string'
)
Parameters:
  • policyArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the Automated Reasoning policy that contains the test.

  • testCaseId (string) –

    [REQUIRED]

    The unique identifier of the test to update.

  • guardContent (string) –

    [REQUIRED]

    The updated content to be validated by the Automated Reasoning policy.

  • queryContent (string) – The updated input query or prompt that generated the content.

  • lastUpdatedAt (datetime) –

    [REQUIRED]

    The timestamp when the test was last updated. This is used as a concurrency token to prevent conflicting modifications.

  • expectedAggregatedFindingsResult (string) –

    [REQUIRED]

    The updated expected result of the Automated Reasoning check.

  • confidenceThreshold (float) – The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.

  • kmsKeyArn (string) – The KMS key ARN for encrypting the test at rest. If not provided, the key will not be updated. Use DISCARD to remove the key.

  • clientRequestToken (string) –

    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.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'policyArn': 'string',
    'testCaseId': 'string'
}

Response Structure

  • (dict) –

    • policyArn (string) –

      The Amazon Resource Name (ARN) of the policy that contains the updated test.

    • testCaseId (string) –

      The unique identifier of the updated test.

Exceptions