AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.
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 <value>]
[--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>]
--durable-execution-arn (string)
The Amazon Resource Name (ARN) of the durable execution.
--checkpoint-token (string)
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 (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)
The unique identifier for this operation.ParentId -> (string)
The unique identifier of the parent operation, if this operation is running within a child context.Name -> (string)
The customer-provided name for this operation.Type -> (string)
The type of operation to update.SubType -> (string)
The subtype of the operation, providing additional categorization.Action -> (string)
The action to take on the operation.Payload -> (string)
The payload for successful operations.Error -> (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.WaitOptions -> (structure)
Options for wait operations.
WaitSeconds -> (integer)
The duration to wait, in seconds.CallbackOptions -> (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.HeartbeatTimeoutSeconds -> (integer)
The heartbeat timeout for the callback operation, in seconds. If not specified or set to 0, heartbeat timeout is disabled.ChainedInvokeOptions -> (structure)
Configuration options for chained function invocations in durable executions, including retry settings and timeout configuration.
FunctionName -> (string)
The name or ARN of the Lambda function to invoke.TenantId -> (string)
The tenant identifier for the chained invocation.
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.
--cli-input-json (string)
Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI 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.
--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. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.
--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.
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.
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)
The unique identifier for this operation.ParentId -> (string)
The unique identifier of the parent operation, if this operation is running within a child context.Name -> (string)
The customer-provided name for this operation.Type -> (string)
The type of operation.SubType -> (string)
The subtype of the operation, providing additional categorization.StartTimestamp -> (timestamp)
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)
The current status of the operation.ExecutionDetails -> (structure)
Details about the execution, if this operation represents an execution.
InputPayload -> (string)
The original input payload provided for the durable execution.ContextDetails -> (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.Error -> (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.NextAttemptTimestamp -> (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.Error -> (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 theDurableContextwhen a durable function callsctx.waitForCallback.Result -> (string)
The response payload from the callback operation as a string.Error -> (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.Error -> (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.