Skip to content

iter_list_channel_namespaces async

iter_list_channel_namespaces(
    api_id: String,
    *,
    config_overrides: Optional[AsyncAppSyncClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxResults] = None,
) -> AsyncIterator[ChannelNamespace]
Source code in docs_src/capo_appsync/_services/async_app_sync.py
async def iter_list_channel_namespaces(
    self,
    api_id: "capo_appsync.types.string.String",
    *,
    config_overrides: Optional[AsyncAppSyncClientConfig] = None,
    next_token: Optional[
        "capo_appsync.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional["capo_appsync.types.max_results.MaxResults"] = None,
) -> "AsyncIterator[capo_appsync.types.channel_namespace.ChannelNamespace]":
    _token = next_token
    while True:
        _response = await self.list_channel_namespaces(
            api_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("channel_namespaces",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break