Skip to content

LambdaClient.checkpoint_durable_execution

rboto-lambda==0.4.0 · Service index · Types

Model summary (excerpt): Saves the progress of a durable function execution during runtime. This API is used by the Lambda durable functions SDK to checkpoint completed steps and schedule asynchronous operations. You typically don't need to call this API directly as the SDK handles checkpointing automatically. Each checkpoint operation consumes the current checkpoint token and returns a new one for the next...

Install and imports

python -m pip install "rboto[lambda]==0.4.0"
from rboto import LambdaClient
from collections.abc import Sequence
from rboto_lambda.types import (
    CheckpointDurableExecutionOutput,
    OperationUpdate,
)

Signature

async def checkpoint_durable_execution(
    *,
    durable_execution_arn: str,
    checkpoint_token: str,
    updates: Sequence[OperationUpdate] | None = None,
    client_token: str | None = None,
) -> CheckpointDurableExecutionOutput: ...

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 unique token that identifies the current checkpoint state. This token is provided by the Lambda runtime and must be used to ensure checkpoints are applied in the correct order. Each checkpoint operation consumes this token and returns a new one.
updates No An array of state updates to apply during this checkpoint. Each update represents a change to the execution state, such as completing a step, starting a callback, or scheduling a timer. Updates are applied atomically as part of the checkpoint operation.
client_token No An optional idempotency token to ensure that duplicate checkpoint requests are handled correctly. If provided, Lambda uses this token to detect and handle duplicate requests within a 15-minute window.

Output

CheckpointDurableExecutionOutput.

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
checkpoint_token str | None Always present —
new_execution_state CheckpointUpdatedExecutionStateOutput | None Always present CheckpointUpdatedExecutionStateOutput

| 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.

CheckpointDurableExecutionOutput, OperationUpdate

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

Pagination and streaming

No generated paginator for this operation.

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.

Service guide · Pinned model