title: How to configure DynamoDB retryLimit and retryDelay in Node js API?
body: <p>I have pretty high traffic peaks, thus I'd like to overwrite the dynamodb retry limit and retry policy.</p>
  
  <p>Somehow I'm not able to find the right config property to overwrite the retry limit and function.</p>
  
  <p>my code so far</p>
  
  <pre><code>var aws = require( 'aws-sdk');
  var table = new aws.DynamoDB({params: {TableName: 'MyTable'}});
  aws.config.update({accessKeyId: process.env.AWS_ACCESS_KEY_ID, secretAccessKey: process.env.AWS_SECRET_KEY});
  aws.config.region = 'eu-central-1';
  </code></pre>
  
  <p>I found the following amazon variables and code snippets, however I'm not sure how to wire this up with the config?</p>
  
  <pre><code>retryLimit: 15,
  retryDelays: function retryDelays() {
      var retryCount = this.numRetries();
      var delays = [];
      for (var i = 0; i &lt; retryCount; ++i) {
          if (i === 0) {
              delays.push(0);
          } else {
              delays.push(60*1000 *i); // Retry every minute instead
              // Amazon Defaultdelays.push(50 * Math.pow(2, i - 1));
          }
      }
      return delays;
  }
  </code></pre>