Bedrock / Client / get_automated_reasoning_policy_next_scenario

get_automated_reasoning_policy_next_scenario

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

Request Syntax

response = client.get_automated_reasoning_policy_next_scenario(
    policyArn='string',
    buildWorkflowId='string'
)
Parameters:
  • policyArn (string) –

    [REQUIRED]

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

  • buildWorkflowId (string) –

    [REQUIRED]

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

Return type:

dict

Returns:

Response Syntax

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

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.

      • ruleIds (list) –

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

        • (string) –

      • expectedResult (string) –

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

Exceptions