def iter_list_jobs(
self,
*,
config_overrides: Optional[IoTClientConfig] = None,
status: Optional["capo_iot.types.job_status.JobStatus"] = None,
target_selection: Optional[
"capo_iot.types.target_selection.TargetSelection"
] = None,
max_results: Optional[
"capo_iot.types.laser_max_results.LaserMaxResults"
] = None,
next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
thing_group_name: Optional[
"capo_iot.types.thing_group_name.ThingGroupName"
] = None,
thing_group_id: Optional["capo_iot.types.thing_group_id.ThingGroupId"] = None,
namespace_id: Optional["capo_iot.types.namespace_id.NamespaceId"] = None,
) -> "Iterator[capo_iot.types.job_summary.JobSummary]":
_token = next_token
while True:
_response = self.list_jobs(
config_overrides=config_overrides,
status=status,
target_selection=target_selection,
max_results=max_results,
next_token=_token,
thing_group_name=thing_group_name,
thing_group_id=thing_group_id,
namespace_id=namespace_id,
)
_page = _resolve_path(_response, ("jobs",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break