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

********************************************
get_automated_reasoning_policy_next_scenario
********************************************



.. py:method:: Bedrock.Client.get_automated_reasoning_policy_next_scenario(**kwargs)

  

  Retrieves the next test scenario for validating an Automated Reasoning policy. This is used during the interactive policy refinement process to test policy behavior.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/GetAutomatedReasoningPolicyNextScenario>`_  


  **Request Syntax**
  ::

    response = client.get_automated_reasoning_policy_next_scenario(
        policyArn='string',
        buildWorkflowId='string'
    )
    
  :type policyArn: string
  :param policyArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the Automated Reasoning policy for which you want to get the next test scenario.

    

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

    The unique identifier of the build workflow associated with the test scenarios.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'policyArn': 'string',
          'scenario': {
              'expression': 'string',
              'alternateExpression': 'string',
              'expectedResult': 'VALID'|'INVALID'|'SATISFIABLE'|'IMPOSSIBLE'|'TRANSLATION_AMBIGUOUS'|'TOO_COMPLEX'|'NO_TRANSLATION',
              'ruleIds': [
                  'string',
              ]
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **policyArn** *(string) --* 

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

        
      

      - **scenario** *(dict) --* 

        The next test scenario to validate, including the test expression and expected results.

        
        

        - **expression** *(string) --* 

          The logical expression or condition that defines this test scenario.

          
        

        - **alternateExpression** *(string) --* 

          An alternative way to express the same test scenario, used for validation and comparison purposes.

          
        

        - **expectedResult** *(string) --* 

          The expected outcome when this scenario is evaluated against the policy (e.g., PASS, FAIL, VIOLATION).

          
        

        - **ruleIds** *(list) --* 

          The list of rule identifiers that are expected to be triggered or evaluated by this test scenario.

          
          

          - *(string) --* 
      
    
  
  **Exceptions**
  
  *   :py:class:`Bedrock.Client.exceptions.ResourceNotFoundException`

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

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

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

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

  