def iter_list_ota_task_executions(
self,
identifier: "capo_iot_managed_integrations.types.ota_task_id.OtaTaskId",
*,
config_overrides: Optional[IoTManagedIntegrationsClientConfig] = 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,
) -> "Iterator[capo_iot_managed_integrations.types.ota_task_execution_summaries.OtaTaskExecutionSummaries]":
_token = next_token
while True:
_response = self.list_ota_task_executions(
identifier,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("execution_summaries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break