async def iter_get_execution_history(
self,
execution_arn: "capo_sfn.types.arn.Arn",
*,
config_overrides: Optional[AsyncSFNClientConfig] = 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,
) -> "AsyncIterator[capo_sfn.types.history_event.HistoryEvent]":
_token = next_token
while True:
_response = await 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