LambdaClient.get_durable_execution_state
rboto-lambda==0.4.0 · Service index · Types
Model summary (excerpt): Retrieves the current execution state required for the replay process during durable function execution. This API is used by the Lambda durable functions SDK to get state information needed for replay. You typically don't need to call this API directly as the SDK handles state management automatically. The response contains operations ordered by start sequence number in ascending order....
Install and imports
Signature
async def get_durable_execution_state(
*,
durable_execution_arn: str,
checkpoint_token: str,
marker: str | None = None,
max_items: int | None = None,
) -> GetDurableExecutionStateOutput: ...
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) |
|---|---|---|
durable_execution_arn |
Yes | The Amazon Resource Name (ARN) of the durable execution. |
checkpoint_token |
Yes | A checkpoint token that identifies the current state of the execution. This token is provided by the Lambda runtime and ensures that state retrieval is consistent with the current execution context. |
marker |
No | If NextMarker was returned from a previous request, use this value to retrieve the next page of operations. Each pagination token expires after 24 hours. |
max_items |
No | The maximum number of operations to return per call. You can use Marker to retrieve additional pages of results. The default is 100 and the maximum allowed is 1000. A value of 0 uses the default. |
Output
GetDurableExecutionStateOutput.
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 |
|---|---|---|---|
operations |
list[OperationOutput] |
Always present | OperationOutput |
next_marker |
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.
Related types
GetDurableExecutionStateOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
client.paginators.get_durable_execution_state(...) accepts the same arguments and returns AsyncIterator[GetDurableExecutionStateOutput]. Direct calls return one page. Pages preserve the Output representation above.
Input cursors: marker. Page-size argument: max_items.
No output stream.
Errors
Import from rboto_lambda.exceptions:
InvalidParameterValueError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, ServiceError, TooManyRequestsError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.