title: How to pass httpOptions in aws-sdk DocumentClient constructor?
body: <p>I am having serious performance issues with aws-sdk when I deploy my application to AWS. 
  I'm using it like below:</p>
  
  <pre><code>wrapper = {
      accessKeyId: "YOURACCESSKEY",
      secretAccessKey: "YOURSECRETKEY",
      region: "us-east-1",
      endpoint: new AWS.Endpoint('http://localhost:8000')
  };
  
  AWS.config.update(wrapper);
  
  const docClient = new AWS.DynamoDB.DocumentClient();
  
  module.exports ={"docClient":docClient};
  </code></pre>
  
  <p>I researched and found that - <a href="https://github.com/aws/aws-sdk-js/issues/900" rel="nofollow noreferrer">https://github.com/aws/aws-sdk-js/issues/900</a> - we can specify httpOptions in the aws so that keepAlive is enabled.</p>
  
  <p>My questions is, how do I specify the httpOptions in the AWS-sdk constructor above:</p>
  
  <pre><code>var dynamo = new AWS.DynamoDB({
    region: "ap-southeast-2",
    httpOptions: {
    agent: new https.Agent({
    rejectUnauthorized: true,
    keepAlive: true
    })
  }
  </code></pre>
  
  <p>});</p>
  
  <p>how to add this to the wrapper config. It doesn't accept any extra httpOptions key in AWS.config.update</p>