async def iter_list_managed_job_templates(
self,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
template_name: Optional[
"capo_iot.types.managed_job_template_name.ManagedJobTemplateName"
] = None,
max_results: Optional[
"capo_iot.types.laser_max_results.LaserMaxResults"
] = None,
next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_iot.types.managed_job_template_summary.ManagedJobTemplateSummary]":
_token = next_token
while True:
_response = await self.list_managed_job_templates(
config_overrides=config_overrides,
template_name=template_name,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("managed_job_templates",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break