Skip to content

iter_list_managed_notification_configurations async

iter_list_managed_notification_configurations(
    *,
    config_overrides: Optional[AsyncNotificationsClientConfig] = None,
    channel_identifier: Optional[ChannelIdentifier] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ManagedNotificationConfigurationStructure]
Source code in docs_src/capo_notifications/_services/async_notifications.py
async def iter_list_managed_notification_configurations(
    self,
    *,
    config_overrides: Optional[AsyncNotificationsClientConfig] = None,
    channel_identifier: Optional[
        "capo_notifications.types.channel_identifier.ChannelIdentifier"
    ] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_notifications.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_notifications.types.managed_notification_configuration_structure.ManagedNotificationConfigurationStructure]":
    _token = next_token
    while True:
        _response = await self.list_managed_notification_configurations(
            config_overrides=config_overrides,
            channel_identifier=channel_identifier,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("managed_notification_configurations",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break