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 checkpoint. This ensures that checkpoints are applied in the correct order and prevents duplicate or out-of-order state updates.
See also: AWS API Documentation
checkpoint-durable-execution
--durable-execution-arn <value>
--checkpoint-token <value>
[--updates <value>]
[--client-token <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
--durable-execution-arn (string) [required]
The Amazon Resource Name (ARN) of the durable execution.
Constraints:
- min:
1- max:
1024- pattern:
arn:([a-zA-Z0-9-]+):lambda:([a-zA-Z0-9-]+):(\d{12}):function:([a-zA-Z0-9_-]+):(\$LATEST(?:\.PUBLISHED)?|[0-9]+)/durable-execution/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)
--checkpoint-token (string) [required]
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.
Constraints:
- min:
1- max:
2048- pattern:
[A-Za-z0-9+/]+={0,2}
--updates (list)
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.
(structure)
An update to be applied to an operation during checkpointing.
Id -> (string) [required]
The unique identifier for this operation.
Constraints:
- min:
1- max:
64- pattern:
[a-zA-Z0-9-_]+ParentId -> (string)
The unique identifier of the parent operation, if this operation is running within a child context.
Constraints:
- min:
1- max:
64- pattern:
[a-zA-Z0-9-_]+Name -> (string)
The customer-provided name for this operation.
Constraints:
- min:
1- max:
256- pattern:
[\x20-\x7E]+Type -> (string) [required]
The type of operation to update.
Possible values:
EXECUTIONCONTEXTSTEPWAITCALLBACKCHAINED_INVOKESubType -> (string)
The subtype of the operation, providing additional categorization.
Constraints:
- min:
1- max:
32- pattern:
[a-zA-Z0-9-_]+Action -> (string) [required]
The action to take on the operation.
Possible values:
STARTSUCCEEDFAILRETRYCANCELPayload -> (string)
The payload for successful operations.
Constraints:
- min:
0- max:
6291456Error -> (structure)
The error information for failed operations.
ErrorMessage -> (string)
A human-readable error message.ErrorType -> (string)
The error type.ErrorData -> (string)
Machine-readable error data.StackTrace -> (list)
Stack trace information for the error.
(string)
ContextOptions -> (structure)
Options for context operations.
ReplayChildren -> (boolean)
Whether the state data of children of the completed context should be included in the invoke payload andGetDurableExecutionStateresponse.StepOptions -> (structure)
Options for step operations.
NextAttemptDelaySeconds -> (integer)
The delay in seconds before the next retry attempt.
Constraints:
- min:
1- max:
31622400WaitOptions -> (structure)
Options for wait operations.
WaitSeconds -> (integer)
The duration to wait, in seconds.
Constraints:
- min:
1- max:
31622400CallbackOptions -> (structure)
Configuration options for callback operations in durable executions, including timeout settings and retry behavior.
TimeoutSeconds -> (integer)
The timeout for the callback operation in seconds. If not specified or set to 0, the callback has no timeout.
Constraints:
- min:
0HeartbeatTimeoutSeconds -> (integer)
The heartbeat timeout for the callback operation, in seconds. If not specified or set to 0, heartbeat timeout is disabled.
Constraints:
- min:
0ChainedInvokeOptions -> (structure)
Configuration options for chained function invocations in durable executions, including retry settings and timeout configuration.
FunctionName -> (string) [required]
The name or ARN of the Lambda function to invoke.
Constraints:
- min:
1- max:
256- pattern:
(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1}:)?(\d{12}:)?(function:)?([a-zA-Z0-9-_\.]+)(:(\$LATEST(\.PUBLISHED)?|[a-zA-Z0-9-_]+))?TenantId -> (string)
The tenant identifier for the chained invocation.
Constraints:
- min:
1- max:
256- pattern:
[a-zA-Z0-9\._:\/=+\-@ ]+
Shorthand Syntax:
Id=string,ParentId=string,Name=string,Type=string,SubType=string,Action=string,Payload=string,Error={ErrorMessage=string,ErrorType=string,ErrorData=string,StackTrace=[string,string]},ContextOptions={ReplayChildren=boolean},StepOptions={NextAttemptDelaySeconds=integer},WaitOptions={WaitSeconds=integer},CallbackOptions={TimeoutSeconds=integer,HeartbeatTimeoutSeconds=integer},ChainedInvokeOptions={FunctionName=string,TenantId=string} ...
JSON Syntax:
[
{
"Id": "string",
"ParentId": "string",
"Name": "string",
"Type": "EXECUTION"|"CONTEXT"|"STEP"|"WAIT"|"CALLBACK"|"CHAINED_INVOKE",
"SubType": "string",
"Action": "START"|"SUCCEED"|"FAIL"|"RETRY"|"CANCEL",
"Payload": "string",
"Error": {
"ErrorMessage": "string",
"ErrorType": "string",
"ErrorData": "string",
"StackTrace": ["string", ...]
},
"ContextOptions": {
"ReplayChildren": true|false
},
"StepOptions": {
"NextAttemptDelaySeconds": integer
},
"WaitOptions": {
"WaitSeconds": integer
},
"CallbackOptions": {
"TimeoutSeconds": integer,
"HeartbeatTimeoutSeconds": integer
},
"ChainedInvokeOptions": {
"FunctionName": "string",
"TenantId": "string"
}
}
...
]
--client-token (string)
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.
Constraints:
- min:
1- max:
64- pattern:
[\x21-\x7E]+
--cli-input-json | --cli-input-yaml (string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.
--generate-cli-skeleton (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format (string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.
--no-cli-pager (boolean)
Disable cli pager for output.
--cli-auto-prompt (boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt (boolean)
Disable automatically prompt for CLI input parameters.
CheckpointToken -> (string)
A new checkpoint token to use for the next checkpoint operation. This token replaces the one provided in the request and must be used for subsequent checkpoints to maintain proper ordering.
Constraints:
- min:
1- max:
2048- pattern:
[A-Za-z0-9+/]+={0,2}
NewExecutionState -> (structure)
Updated execution state information that includes any changes that occurred since the last checkpoint, such as completed callbacks or expired timers. This allows the SDK to update its internal state during replay.
Operations -> (list)
A list of operations that have been updated since the last checkpoint.
(structure)
Information about an operation within a durable execution.
Id -> (string) [required]
The unique identifier for this operation.
Constraints:
- min:
1- max:
64- pattern:
[a-zA-Z0-9-_]+ParentId -> (string)
The unique identifier of the parent operation, if this operation is running within a child context.
Constraints:
- min:
1- max:
64- pattern:
[a-zA-Z0-9-_]+Name -> (string)
The customer-provided name for this operation.
Constraints:
- min:
1- max:
256- pattern:
[\x20-\x7E]+Type -> (string) [required]
The type of operation.
Possible values:
EXECUTIONCONTEXTSTEPWAITCALLBACKCHAINED_INVOKESubType -> (string)
The subtype of the operation, providing additional categorization.
Constraints:
- min:
1- max:
32- pattern:
[a-zA-Z0-9-_]+StartTimestamp -> (timestamp) [required]
The date and time when the operation started, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).EndTimestamp -> (timestamp)
The date and time when the operation ended, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).Status -> (string) [required]
The current status of the operation.
Possible values:
STARTEDPENDINGREADYSUCCEEDEDFAILEDCANCELLEDTIMED_OUTSTOPPEDExecutionDetails -> (structure)
Details about the execution, if this operation represents an execution.
InputPayload -> (string)
The original input payload provided for the durable execution.
Constraints:
- min:
0- max:
6291456ContextDetails -> (structure)
Details about the context, if this operation represents a context.
ReplayChildren -> (boolean)
Whether the state data of child operations of this completed context should be included in the invoke payload andGetDurableExecutionStateresponse.Result -> (string)
The response payload from the context.
Constraints:
- min:
0- max:
6291456Error -> (structure)
Details about the context failure.
ErrorMessage -> (string)
A human-readable error message.ErrorType -> (string)
The error type.ErrorData -> (string)
Machine-readable error data.StackTrace -> (list)
Stack trace information for the error.
(string)
StepDetails -> (structure)
Details about the step, if this operation represents a step.
Attempt -> (integer)
The current attempt number for this step.
Constraints:
- min:
0NextAttemptTimestamp -> (timestamp)
The date and time when the next attempt is scheduled, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). Only populated when the step is in a pending state.Result -> (string)
The JSON response payload from the step operation.
Constraints:
- min:
0- max:
6291456Error -> (structure)
Details about the step failure.
ErrorMessage -> (string)
A human-readable error message.ErrorType -> (string)
The error type.ErrorData -> (string)
Machine-readable error data.StackTrace -> (list)
Stack trace information for the error.
(string)
WaitDetails -> (structure)
Details about the wait operation, if this operation represents a wait.
ScheduledEndTimestamp -> (timestamp)
The date and time when the wait operation is scheduled to complete, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).CallbackDetails -> (structure)
Contains details about a callback operation in a durable execution, including the callback token and timeout configuration.
CallbackId -> (string)
The callback ID. Callback IDs are generated by the
DurableContextwhen a durable function callsctx.waitForCallback.Constraints:
- min:
1- max:
1024- pattern:
[A-Za-z0-9+/]+={0,2}Result -> (string)
The response payload from the callback operation as a string.
Constraints:
- min:
0- max:
6291456Error -> (structure)
An error object that contains details about the failure.
ErrorMessage -> (string)
A human-readable error message.ErrorType -> (string)
The error type.ErrorData -> (string)
Machine-readable error data.StackTrace -> (list)
Stack trace information for the error.
(string)
ChainedInvokeDetails -> (structure)
Contains details about a chained function invocation in a durable execution, including the target function and invocation parameters.
Result -> (string)
The response payload from the chained invocation.
Constraints:
- min:
0- max:
6291456Error -> (structure)
Details about the chained invocation failure.
ErrorMessage -> (string)
A human-readable error message.ErrorType -> (string)
The error type.ErrorData -> (string)
Machine-readable error data.StackTrace -> (list)
Stack trace information for the error.
(string)
NextMarker -> (string)
Indicates that more results are available. Use this value in a subsequent call to retrieve the next page of results.