def iter_list_job_executions_for_job(
self,
job_id: "capo_iot.types.job_id.JobId",
*,
config_overrides: Optional[IoTClientConfig] = None,
status: Optional[
"capo_iot.types.job_execution_status.JobExecutionStatus"
] = None,
max_results: Optional[
"capo_iot.types.laser_max_results.LaserMaxResults"
] = None,
next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
) -> "Iterator[capo_iot.types.job_execution_summary_for_job.JobExecutionSummaryForJob]":
_token = next_token
while True:
_response = self.list_job_executions_for_job(
job_id,
config_overrides=config_overrides,
status=status,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("execution_summaries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break