durable-execution-sdk-js.durableexecutionconfig.client.md
December 2, 2025 ยท View on GitHub
Home > @aws/durable-execution-sdk-js > DurableExecutionConfig > client
DurableExecutionConfig.client property
Optional custom AWS Lambda client instance for durable execution operations.
When provided, this client will be used for all AWS Lambda service calls including checkpoint operations and execution state management. This is useful for: - Custom AWS configurations (regions, credentials, endpoints) - Testing with mocked Lambda clients - Advanced networking configurations (VPC endpoints, proxies) - Custom retry and timeout configurations
If not provided, a default Lambda client will be created automatically using the standard AWS SDK configuration chain (environment variables, IAM roles, etc.).
Signature:
client?: LambdaClient;
Example
import { LambdaClient } from "@aws-sdk/client-lambda";
const customClient = new LambdaClient({
region: "us-west-2",
maxAttempts: 5,
retryMode: "adaptive",
});
export const handler = withDurableExecution(myHandler, {
client: customClient,
});