Skip to content

iter_list_notification_events

iter_list_notification_events(
    *,
    config_overrides: Optional[NotificationsClientConfig] = None,
    start_time: Optional[datetime] = None,
    end_time: Optional[datetime] = None,
    locale: Optional[LocaleCode] = None,
    source: Optional[Source] = None,
    include_child_events: Optional[bool] = None,
    aggregate_notification_event_arn: Optional[NotificationEventArn] = None,
    max_results: Optional[int] = None,
    next_token: Optional[NextToken] = None,
    organizational_unit_id: Optional[OrganizationalUnitId] = None,
) -> Iterator[NotificationEventOverview]
Source code in docs_src/capo_notifications/_services/notifications.py
def iter_list_notification_events(
    self,
    *,
    config_overrides: Optional[NotificationsClientConfig] = None,
    start_time: Optional[datetime.datetime] = None,
    end_time: Optional[datetime.datetime] = None,
    locale: Optional["capo_notifications.types.locale_code.LocaleCode"] = None,
    source: Optional["capo_notifications.types.source.Source"] = None,
    include_child_events: Optional[bool] = None,
    aggregate_notification_event_arn: Optional[
        "capo_notifications.types.notification_event_arn.NotificationEventArn"
    ] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_notifications.types.next_token.NextToken"] = None,
    organizational_unit_id: Optional[
        "capo_notifications.types.organizational_unit_id.OrganizationalUnitId"
    ] = None,
) -> "Iterator[capo_notifications.types.notification_event_overview.NotificationEventOverview]":
    _token = next_token
    while True:
        _response = self.list_notification_events(
            config_overrides=config_overrides,
            start_time=start_time,
            end_time=end_time,
            locale=locale,
            source=source,
            include_child_events=include_child_events,
            aggregate_notification_event_arn=aggregate_notification_event_arn,
            max_results=max_results,
            next_token=_token,
            organizational_unit_id=organizational_unit_id,
        )
        _page = _resolve_path(_response, ("notification_events",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break