Skip to content

iter_list_ota_tasks

iter_list_ota_tasks(
    *,
    config_overrides: Optional[IoTManagedIntegrationsClientConfig] = None,
    next_token: Optional[OtaNextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> Iterator[OtaTaskSummary]
Source code in docs_src/capo_iot_managed_integrations/_services/io_t_managed_integrations.py
def iter_list_ota_tasks(
    self,
    *,
    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_summary.OtaTaskSummary]"
):
    _token = next_token
    while True:
        _response = 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