Skip to content

iter_get_execution_history

iter_get_execution_history(
    execution_arn: Arn,
    *,
    config_overrides: Optional[SFNClientConfig] = None,
    max_results: Optional[PageSize] = None,
    reverse_order: Optional[ReverseOrder] = None,
    next_token: Optional[PageToken] = None,
    include_execution_data: Optional[IncludeExecutionDataGetExecutionHistory] = None,
) -> Iterator[HistoryEvent]
Source code in docs_src/capo_sfn/_services/sfn.py
def iter_get_execution_history(
    self,
    execution_arn: "capo_sfn.types.arn.Arn",
    *,
    config_overrides: Optional[SFNClientConfig] = None,
    max_results: Optional["capo_sfn.types.page_size.PageSize"] = None,
    reverse_order: Optional["capo_sfn.types.reverse_order.ReverseOrder"] = None,
    next_token: Optional["capo_sfn.types.page_token.PageToken"] = None,
    include_execution_data: Optional[
        "capo_sfn.types.include_execution_data_get_execution_history.IncludeExecutionDataGetExecutionHistory"
    ] = None,
) -> "Iterator[capo_sfn.types.history_event.HistoryEvent]":
    _token = next_token
    while True:
        _response = self.get_execution_history(
            execution_arn,
            config_overrides=config_overrides,
            max_results=max_results,
            reverse_order=reverse_order,
            next_token=_token,
            include_execution_data=include_execution_data,
        )
        _page = _resolve_path(_response, ("events",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break