Skip to content

iter_list_applications

iter_list_applications(
    environment_identifier: EnvironmentId,
    *,
    config_overrides: Optional[MigrationHubRefactorSpacesClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> Iterator[ApplicationSummary]
Source code in docs_src/capo_migration_hub_refactor_spaces/_services/migration_hub_refactor_spaces.py
def iter_list_applications(
    self,
    environment_identifier: "capo_migration_hub_refactor_spaces.types.environment_id.EnvironmentId",
    *,
    config_overrides: Optional[MigrationHubRefactorSpacesClientConfig] = None,
    next_token: Optional[
        "capo_migration_hub_refactor_spaces.types.next_token.NextToken"
    ] = None,
    max_results: Optional[
        "capo_migration_hub_refactor_spaces.types.max_results.MaxResults"
    ] = None,
) -> "Iterator[capo_migration_hub_refactor_spaces.types.application_summary.ApplicationSummary]":
    _token = next_token
    while True:
        _response = self.list_applications(
            environment_identifier,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("application_summary_list",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break