baseprime / dynamodb

DynamoDB data mapper for Node.js
Other
296 stars 88 forks source link

How to configure maxRetries, retryDelayOptions using this Lib #84

Open jerry275 opened 4 years ago

jerry275 commented 4 years ago

I am using below code to create a table reference. I want to know, how I can configure maxRetries, retryDelayOptions for this "surveyInfo" table.

`var dynamo = require('dynamodb');

dynamo.AWS.config.update({accessKeyId: process.env.accessKeyId, secretAccessKey: process.env.secretAccessKey, region: process.env.region});

var surveyInfo = dynamo.define('surveyInfo', { hashKey : 'surveyId', rangeKey: 'surveyAttr' });

surveyInfo.config({tableName: 'surveyInfo'});

module.exports = surveyInfo;`