def iter_list_cloud_watch_alarm_template_groups(
self,
*,
config_overrides: Optional[MediaLiveClientConfig] = None,
max_results: Optional["capo_medialive.types.max_results.MaxResults"] = None,
next_token: Optional["capo_medialive.types.__string.__string"] = None,
scope: Optional["capo_medialive.types.__string.__string"] = None,
signal_map_identifier: Optional[
"capo_medialive.types.__string.__string"
] = None,
) -> "Iterator[capo_medialive.types.cloud_watch_alarm_template_group_summary.CloudWatchAlarmTemplateGroupSummary]":
_token = next_token
while True:
_response = self.list_cloud_watch_alarm_template_groups(
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
scope=scope,
signal_map_identifier=signal_map_identifier,
)
_page = _resolve_path(_response, ("cloud_watch_alarm_template_groups",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break