How to use 'dynamodb describe table' in JavaScript

Every line of 'dynamodb describe table' 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
78function deleteTable(client, table, cb) {
79 function check() {
80 client.describeTable({TableName: table.TableName}, function (err, data) {
81 if (err && err.code === 'ResourceNotFoundException') {
82 cb();
83 } else if (err) {
84 cb(err);
85 } else if (data.Table.TableStatus === 'ACTIVE') {
86 client.deleteTable({TableName: table.TableName}, function (err) {
87 if (err) return cb(err);
88 setTimeout(check, 0);
89 });
90 } else {
91 setTimeout(check, 1000);
92 }
93 });
94 }
95 check();
96}

Related snippets