Skip to content

iter_list_topics

iter_list_topics(
    *,
    config_overrides: Optional[SNSClientConfig] = None,
    next_token: Optional[nextToken] = None,
) -> Iterator[Topic]
Source code in docs_src/capo_sns/_services/sns.py
def iter_list_topics(
    self,
    *,
    config_overrides: Optional[SNSClientConfig] = None,
    next_token: Optional["capo_sns.types.next_token.nextToken"] = None,
) -> "Iterator[capo_sns.types.topic.Topic]":
    _token = next_token
    while True:
        _response = self.list_topics(
            config_overrides=config_overrides,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("topics",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break