Skip to content

iter_list_experiment_definitions async

iter_list_experiment_definitions(
    *,
    config_overrides: Optional[AsyncAppConfigClientConfig] = None,
    application_identifier: Optional[Identifier] = None,
    configuration_profile_identifier: Optional[Identifier] = None,
    environment_identifier: Optional[Identifier] = None,
    status: Optional[ExperimentDefinitionStatus] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ExperimentDefinitionSummary]
Source code in docs_src/capo_appconfig/_services/async_app_config.py
async def iter_list_experiment_definitions(
    self,
    *,
    config_overrides: Optional[AsyncAppConfigClientConfig] = 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,
) -> "AsyncIterator[capo_appconfig.types.experiment_definition_summary.ExperimentDefinitionSummary]":
    _token = next_token
    while True:
        _response = await 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