Skip to content

iter_list_pipeline_executions async

iter_list_pipeline_executions(
    workspace_name: WorkspaceName,
    pipeline_name: ResourceName,
    *,
    config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[ListPipelineExecutionsRequestMaxResultsInteger] = None,
    state: Optional[PipelineExecutionState] = None,
    start_time_after: Optional[Timestamp] = None,
    start_time_before: Optional[Timestamp] = None,
    end_time_after: Optional[Timestamp] = None,
    end_time_before: Optional[Timestamp] = None,
) -> AsyncIterator[PipelineExecutionSummary]
Source code in docs_src/capo_iotsitewise/_services/async_io_t_site_wise.py
async def iter_list_pipeline_executions(
    self,
    workspace_name: "capo_iotsitewise.types.workspace_name.WorkspaceName",
    pipeline_name: "capo_iotsitewise.types.resource_name.ResourceName",
    *,
    config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
    next_token: Optional[
        "capo_iotsitewise.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional[
        "capo_iotsitewise.types.list_pipeline_executions_request_max_results_integer.ListPipelineExecutionsRequestMaxResultsInteger"
    ] = None,
    state: Optional[
        "capo_iotsitewise.types.pipeline_execution_state.PipelineExecutionState"
    ] = None,
    start_time_after: Optional["capo_iotsitewise.types.timestamp.Timestamp"] = None,
    start_time_before: Optional[
        "capo_iotsitewise.types.timestamp.Timestamp"
    ] = None,
    end_time_after: Optional["capo_iotsitewise.types.timestamp.Timestamp"] = None,
    end_time_before: Optional["capo_iotsitewise.types.timestamp.Timestamp"] = None,
) -> "AsyncIterator[capo_iotsitewise.types.pipeline_execution_summary.PipelineExecutionSummary]":
    _token = next_token
    while True:
        _response = await self.list_pipeline_executions(
            workspace_name,
            pipeline_name,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
            state=state,
            start_time_after=start_time_after,
            start_time_before=start_time_before,
            end_time_after=end_time_after,
            end_time_before=end_time_before,
        )
        _page = _resolve_path(_response, ("pipeline_execution_summaries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break