Package software.amazon.lambda.durable
Class ExecutionContext
java.lang.Object
software.amazon.lambda.durable.ExecutionContext
Provides metadata about the current durable execution.
This context contains information about the execution environment that remains constant throughout the execution
lifecycle. Access it via BaseContext.getExecutionContext().
-
Method Summary
Modifier and TypeMethodDescriptionReturns the ARN of the current durable execution.
-
Method Details
-
getDurableExecutionArn
Returns the ARN of the current durable execution.The durable execution ARN uniquely identifies this execution instance and remains constant across all invocations and replays. Use this ARN to:
- Track execution progress in external systems
- Correlate logs and metrics across invocations
- Reference this execution when calling Lambda APIs
Example ARN format:
arn:aws:lambda:us-east-1:123456789012:function:my-function:$LATEST/durable-execution/349beff4-a89d-4bc8-a56f-af7a8af67a5f/20dae574-53da-37a1-bfd5-b0e2e6ec715d- Returns:
- the durable execution ARN
-