Skip to content

iter_list_notification_channels async

iter_list_notification_channels(
    *,
    config_overrides: Optional[AsyncDevOpsGuruClientConfig] = None,
    next_token: Optional[UuidNextToken] = None,
) -> AsyncIterator[NotificationChannel]
Source code in docs_src/capo_devops_guru/_services/async_dev_ops_guru.py
async def iter_list_notification_channels(
    self,
    *,
    config_overrides: Optional[AsyncDevOpsGuruClientConfig] = None,
    next_token: Optional[
        "capo_devops_guru.types.uuid_next_token.UuidNextToken"
    ] = None,
) -> (
    "AsyncIterator[capo_devops_guru.types.notification_channel.NotificationChannel]"
):
    _token = next_token
    while True:
        _response = await self.list_notification_channels(
            config_overrides=config_overrides,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("channels",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break