async def iter_list_notification_rules(
self,
*,
config_overrides: Optional[AsynccodestarnotificationsClientConfig] = None,
filters: Optional[
"capo_codestar_notifications.types.list_notification_rules_filters.ListNotificationRulesFilters"
] = None,
next_token: Optional[
"capo_codestar_notifications.types.next_token.NextToken"
] = None,
max_results: Optional[
"capo_codestar_notifications.types.max_results.MaxResults"
] = None,
) -> "AsyncIterator[capo_codestar_notifications.types.notification_rule_summary.NotificationRuleSummary]":
_token = next_token
while True:
_response = await self.list_notification_rules(
config_overrides=config_overrides,
filters=filters,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("notification_rules",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break