:doc:`Bedrock <../../bedrock>` / Client / update_automated_reasoning_policy_test_case

*******************************************
update_automated_reasoning_policy_test_case
*******************************************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/UpdateAutomatedReasoningPolicyTestCase>`_  


  **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,
        clientRequestToken='string'
    )
    
  :type policyArn: string
  :param policyArn: **[REQUIRED]** 

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

    

  
  :type testCaseId: string
  :param testCaseId: **[REQUIRED]** 

    The unique identifier of the test to update.

    

  
  :type guardContent: string
  :param guardContent: **[REQUIRED]** 

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

    

  
  :type queryContent: string
  :param queryContent: 

    The updated input query or prompt that generated the content.

    

  
  :type lastUpdatedAt: datetime
  :param lastUpdatedAt: **[REQUIRED]** 

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

    

  
  :type expectedAggregatedFindingsResult: string
  :param expectedAggregatedFindingsResult: **[REQUIRED]** 

    The updated expected result of the Automated Reasoning check.

    

  
  :type confidenceThreshold: float
  :param confidenceThreshold: 

    The updated minimum confidence level for logic validation. If null is provided, the threshold will be removed.

    

  
  :type clientRequestToken: string
  :param clientRequestToken: 

    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.

  
  
  :rtype: 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**
  
  *   :py:class:`Bedrock.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Bedrock.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Bedrock.Client.exceptions.ValidationException`

  
  *   :py:class:`Bedrock.Client.exceptions.ConflictException`

  
  *   :py:class:`Bedrock.Client.exceptions.InternalServerException`

  
  *   :py:class:`Bedrock.Client.exceptions.ResourceInUseException`

  
  *   :py:class:`Bedrock.Client.exceptions.ThrottlingException`

  