async def iter_list_job_run_attempts(
self,
application_id: "capo_emr_serverless.types.application_id.ApplicationId",
job_run_id: "capo_emr_serverless.types.job_run_id.JobRunId",
*,
config_overrides: Optional[AsyncEMRServerlessClientConfig] = None,
next_token: Optional["capo_emr_serverless.types.next_token.NextToken"] = None,
max_results: Optional[int] = None,
) -> "AsyncIterator[capo_emr_serverless.types.job_run_attempt_summary.JobRunAttemptSummary]":
_token = next_token
while True:
_response = await self.list_job_run_attempts(
application_id,
job_run_id,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("job_run_attempts",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break