def iter_list_experiment_definitions(
self,
*,
config_overrides: Optional[AppConfigClientConfig] = None,
application_identifier: Optional[
"capo_appconfig.types.identifier.Identifier"
] = None,
configuration_profile_identifier: Optional[
"capo_appconfig.types.identifier.Identifier"
] = None,
environment_identifier: Optional[
"capo_appconfig.types.identifier.Identifier"
] = None,
status: Optional[
"capo_appconfig.types.experiment_definition_status.ExperimentDefinitionStatus"
] = None,
max_results: Optional["capo_appconfig.types.max_results.MaxResults"] = None,
next_token: Optional["capo_appconfig.types.next_token.NextToken"] = None,
) -> "Iterator[capo_appconfig.types.experiment_definition_summary.ExperimentDefinitionSummary]":
_token = next_token
while True:
_response = self.list_experiment_definitions(
config_overrides=config_overrides,
application_identifier=application_identifier,
configuration_profile_identifier=configuration_profile_identifier,
environment_identifier=environment_identifier,
status=status,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("items",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break