How to use 'dynamodb documentclient' in JavaScript

Every line of 'dynamodb documentclient' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
23function dynamoDocClient() {
24 return new AWS.DynamoDB.DocumentClient(options)
25}
161documentClient () {
162 if (this.dynamoDocumentClient) {
163 return this.dynamoDocumentClient;
164 }
165 if (this.endpointURL) {
166 debug('Setting dynamodb document client to %s', this.endpointURL);
167 this.AWS.config.update({'endpoint': this.endpointURL});
168 } else {
169 debug('Getting default dynamodb document client');
170 }
171 this.dynamoDocumentClient = new this.AWS.DynamoDB.DocumentClient();
172 return this.dynamoDocumentClient;
173}

Related snippets