Skip to content

iter_list_batch_job_executions async

iter_list_batch_job_executions(
    application_id: Identifier,
    *,
    config_overrides: Optional[Asyncm2ClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    execution_ids: Optional[IdentifierList] = None,
    job_name: Optional[String100] = None,
    status: Optional[BatchJobExecutionStatus] = None,
    started_after: Optional[Timestamp] = None,
    started_before: Optional[Timestamp] = None,
) -> AsyncIterator[BatchJobExecutionSummary]
Source code in docs_src/capo_m2/_services/async_m2.py
async def iter_list_batch_job_executions(
    self,
    application_id: "capo_m2.types.identifier.Identifier",
    *,
    config_overrides: Optional[Asyncm2ClientConfig] = None,
    next_token: Optional["capo_m2.types.next_token.NextToken"] = None,
    max_results: Optional["capo_m2.types.max_results.MaxResults"] = None,
    execution_ids: Optional["capo_m2.types.identifier_list.IdentifierList"] = None,
    job_name: Optional["capo_m2.types.string100.String100"] = None,
    status: Optional[
        "capo_m2.types.batch_job_execution_status.BatchJobExecutionStatus"
    ] = None,
    started_after: Optional["capo_m2.types.timestamp.Timestamp"] = None,
    started_before: Optional["capo_m2.types.timestamp.Timestamp"] = None,
) -> "AsyncIterator[capo_m2.types.batch_job_execution_summary.BatchJobExecutionSummary]":
    _token = next_token
    while True:
        _response = await self.list_batch_job_executions(
            application_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
            execution_ids=execution_ids,
            job_name=job_name,
            status=status,
            started_after=started_after,
            started_before=started_before,
        )
        _page = _resolve_path(_response, ("batch_job_executions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break