def iter_list_automated_reasoning_policy_test_cases(
self,
policy_arn: "capo_bedrock.types.automated_reasoning_policy_arn.AutomatedReasoningPolicyArn",
*,
config_overrides: Optional[BedrockClientConfig] = None,
next_token: Optional[
"capo_bedrock.types.pagination_token.PaginationToken"
] = None,
max_results: Optional["capo_bedrock.types.max_results.MaxResults"] = None,
) -> "Iterator[capo_bedrock.types.automated_reasoning_policy_test_case.AutomatedReasoningPolicyTestCase]":
_token = next_token
while True:
_response = self.list_automated_reasoning_policy_test_cases(
policy_arn,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("test_cases",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break