def iter_list_managed_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,
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,
related_account: Optional[
"capo_notifications.types.account_id.AccountId"
] = None,
include_sensitive_events: Optional[bool] = None,
) -> "Iterator[capo_notifications.types.managed_notification_event_overview.ManagedNotificationEventOverview]":
_token = next_token
while True:
_response = self.list_managed_notification_events(
config_overrides=config_overrides,
start_time=start_time,
end_time=end_time,
locale=locale,
source=source,
max_results=max_results,
next_token=_token,
organizational_unit_id=organizational_unit_id,
related_account=related_account,
include_sensitive_events=include_sensitive_events,
)
_page = _resolve_path(_response, ("managed_notification_events",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break