def iter_list_experiment_runs(
self,
application_identifier: "capo_appconfig.types.identifier.Identifier",
experiment_definition_identifier: "capo_appconfig.types.identifier.Identifier",
*,
config_overrides: Optional[AppConfigClientConfig] = None,
max_results: Optional["capo_appconfig.types.max_results.MaxResults"] = None,
next_token: Optional["capo_appconfig.types.next_token.NextToken"] = None,
status: Optional[
"capo_appconfig.types.experiment_run_status.ExperimentRunStatus"
] = None,
) -> "Iterator[capo_appconfig.types.experiment_run_summary.ExperimentRunSummary]":
_token = next_token
while True:
_response = self.list_experiment_runs(
application_identifier,
experiment_definition_identifier,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
status=status,
)
_page = _resolve_path(_response, ("items",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break