Skip to content

iter_list_job_executions_for_thing async

iter_list_job_executions_for_thing(
    thing_name: ThingName,
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    status: Optional[JobExecutionStatus] = None,
    namespace_id: Optional[NamespaceId] = None,
    max_results: Optional[LaserMaxResults] = None,
    next_token: Optional[NextToken] = None,
    job_id: Optional[JobId] = None,
) -> AsyncIterator[JobExecutionSummaryForThing]
Source code in docs_src/capo_iot/_services/async_io_t.py
async def iter_list_job_executions_for_thing(
    self,
    thing_name: "capo_iot.types.thing_name.ThingName",
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    status: Optional[
        "capo_iot.types.job_execution_status.JobExecutionStatus"
    ] = None,
    namespace_id: Optional["capo_iot.types.namespace_id.NamespaceId"] = None,
    max_results: Optional[
        "capo_iot.types.laser_max_results.LaserMaxResults"
    ] = None,
    next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
    job_id: Optional["capo_iot.types.job_id.JobId"] = None,
) -> "AsyncIterator[capo_iot.types.job_execution_summary_for_thing.JobExecutionSummaryForThing]":
    _token = next_token
    while True:
        _response = await self.list_job_executions_for_thing(
            thing_name,
            config_overrides=config_overrides,
            status=status,
            namespace_id=namespace_id,
            max_results=max_results,
            next_token=_token,
            job_id=job_id,
        )
        _page = _resolve_path(_response, ("execution_summaries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break