async def iter_list_ota_tasks(
self,
*,
config_overrides: Optional[AsyncIoTManagedIntegrationsClientConfig] = None,
next_token: Optional[
"capo_iot_managed_integrations.types.ota_next_token.OtaNextToken"
] = None,
max_results: Optional[
"capo_iot_managed_integrations.types.max_results.MaxResults"
] = None,
) -> "AsyncIterator[capo_iot_managed_integrations.types.ota_task_summary.OtaTaskSummary]":
_token = next_token
while True:
_response = await self.list_ota_tasks(
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("tasks",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break