You can call the UpdateTable operation to update the maximum number of versions and reserved read/write throughput of a table.


   * Update the reserved read/write throughput of a specified table.
  updateTable(params, callback) 


Set maxVersions of a table to 5.

var client = require('./client');

var params = {
    tableName: 'sampleTable',
    tableOptions: {
        maxVersions: 5,

client.updateTable(params, function (err, data) {
    if (err) {
        console.log('error:', err);
    console.log('success:', data);

Note Code details can be obtained at updateTable@GitHub.