Skip to content

iter_list_notification_configurations async

iter_list_notification_configurations(
    *,
    config_overrides: Optional[AsyncNotificationsClientConfig] = None,
    event_rule_source: Optional[Source] = None,
    channel_arn: Optional[ChannelArn] = None,
    status: Optional[NotificationConfigurationStatus] = None,
    subtype: Optional[NotificationConfigurationSubtype] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[NotificationConfigurationStructure]
Source code in docs_src/capo_notifications/_services/async_notifications.py
async def iter_list_notification_configurations(
    self,
    *,
    config_overrides: Optional[AsyncNotificationsClientConfig] = None,
    event_rule_source: Optional["capo_notifications.types.source.Source"] = None,
    channel_arn: Optional["capo_notifications.types.channel_arn.ChannelArn"] = None,
    status: Optional[
        "capo_notifications.types.notification_configuration_status.NotificationConfigurationStatus"
    ] = None,
    subtype: Optional[
        "capo_notifications.types.notification_configuration_subtype.NotificationConfigurationSubtype"
    ] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_notifications.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_notifications.types.notification_configuration_structure.NotificationConfigurationStructure]":
    _token = next_token
    while True:
        _response = await self.list_notification_configurations(
            config_overrides=config_overrides,
            event_rule_source=event_rule_source,
            channel_arn=channel_arn,
            status=status,
            subtype=subtype,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("notification_configurations",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break