Skip to content

iter_list_workflow_step_executions async

iter_list_workflow_step_executions(
    workflow_execution_id: WorkflowExecutionId,
    *,
    config_overrides: Optional[AsyncimagebuilderClientConfig] = None,
    max_results: Optional[RestrictedInteger] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[WorkflowStepMetadata]
Source code in docs_src/capo_imagebuilder/_services/async_imagebuilder.py
async def iter_list_workflow_step_executions(
    self,
    workflow_execution_id: "capo_imagebuilder.types.workflow_execution_id.WorkflowExecutionId",
    *,
    config_overrides: Optional[AsyncimagebuilderClientConfig] = None,
    max_results: Optional[
        "capo_imagebuilder.types.restricted_integer.RestrictedInteger"
    ] = None,
    next_token: Optional[
        "capo_imagebuilder.types.pagination_token.PaginationToken"
    ] = None,
) -> "AsyncIterator[capo_imagebuilder.types.workflow_step_metadata.WorkflowStepMetadata]":
    _token = next_token
    while True:
        _response = await self.list_workflow_step_executions(
            workflow_execution_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("steps",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break