diff --git a/src/lib/dynamodb.ts b/src/lib/dynamodb.ts index 01483f0..c74ec10 100644 --- a/src/lib/dynamodb.ts +++ b/src/lib/dynamodb.ts @@ -107,6 +107,8 @@ export class DynamoDB { endpoint, region, requestHandler, + // maxRetries property has been renamed from v2 https://github.com/aws/aws-sdk-js-v3/issues/4049 + maxAttempts: typeof retries === "number" ? retries : undefined, }) ); }