Skip to content

iter_list_domain_names

iter_list_domain_names(
    *,
    config_overrides: Optional[AppSyncClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxResults] = None,
) -> Iterator[DomainNameConfig]
Source code in docs_src/capo_appsync/_services/app_sync.py
def iter_list_domain_names(
    self,
    *,
    config_overrides: Optional[AppSyncClientConfig] = None,
    next_token: Optional[
        "capo_appsync.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional["capo_appsync.types.max_results.MaxResults"] = None,
) -> "Iterator[capo_appsync.types.domain_name_config.DomainNameConfig]":
    _token = next_token
    while True:
        _response = self.list_domain_names(
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("domain_name_configs",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break