Skip to content

StepFunctionsClient.get_execution_history

rboto-sfn==0.4.0 · Service index · Types

Model summary (excerpt): Returns the history of the specified execution as a list of events. By default, the results are returned in ascending order of the timeStamp of the events. Use the reverseOrder parameter to get the latest events first. If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to...

Install and imports

python -m pip install "rboto[sfn]==0.4.0"
from rboto import StepFunctionsClient
from rboto_sfn.types import (
    GetExecutionHistoryOutput,
)

Signature

async def get_execution_history(
    *,
    execution_arn: str,
    max_results: int | None = None,
    reverse_order: bool | None = None,
    next_token: str | None = None,
    include_execution_data: bool | None = None,
) -> GetExecutionHistoryOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
execution_arn Yes The Amazon Resource Name (ARN) of the execution.
max_results No The maximum number of results that are returned per call. You can use nextToken to obtain further pages of results. The default is 100 and the maximum allowed page size is 1000. A value of 0 uses the default. This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
reverse_order No Lists events in descending order of their timeStamp .
next_token No If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.
include_execution_data No You can select whether execution data (input or output of a history event) is returned. The default is true .

Output

GetExecutionHistoryOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
events list[HistoryEventOutput] Always present HistoryEventOutput
next_token str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

GetExecutionHistoryOutput

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

client.paginators.get_execution_history(...) accepts the same arguments and returns AsyncIterator[GetExecutionHistoryOutput]. Direct calls return one page. Pages preserve the Output representation above.

Input cursors: next_token. Page-size argument: max_results.

No output stream.

Errors

Import from rboto_sfn.exceptions:

ExecutionDoesNotExistError, InvalidArnError, InvalidTokenError, KmsAccessDeniedError, KmsInvalidStateError, KmsThrottlingError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model