Skip to content

Bedrock  >  Operations  >  get_automated_reasoning_policy_next_scenario

get_automated_reasoning_policy_next_scenario

Operation

get_automated_reasoning_policy_next_scenario async

get_automated_reasoning_policy_next_scenario(input: GetAutomatedReasoningPolicyNextScenarioInput, plugins: list[Plugin] | None = None) -> GetAutomatedReasoningPolicyNextScenarioOutput

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

Parameters:

Name Type Description Default
input GetAutomatedReasoningPolicyNextScenarioInput

An instance of GetAutomatedReasoningPolicyNextScenarioInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
GetAutomatedReasoningPolicyNextScenarioOutput

An instance of GetAutomatedReasoningPolicyNextScenarioOutput.

Input

GetAutomatedReasoningPolicyNextScenarioInput dataclass

Dataclass for GetAutomatedReasoningPolicyNextScenarioInput structure.

Attributes

build_workflow_id class-attribute instance-attribute
build_workflow_id: str | None = None

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

policy_arn class-attribute instance-attribute
policy_arn: str | None = None

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

Output

GetAutomatedReasoningPolicyNextScenarioOutput dataclass

Dataclass for GetAutomatedReasoningPolicyNextScenarioOutput structure.

Attributes

policy_arn instance-attribute
policy_arn: str

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

scenario class-attribute instance-attribute
scenario: AutomatedReasoningPolicyScenario | None = None

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