You can call the UpdateTable operation to modify the information about a table, such as table configurations and the reserved read and write throughput.
Parameters
For more information, see Create a data table.
Example
The following sample code provides an example on how to update the max versions of a table to five:
private static void updateTable(SyncClient client) {
// Specify the time to live (TTL) of data. A value of -1 specifies that the data never expires. Unit: seconds.
int timeToLive = -1;
// Update the max versions of the table to five.
int maxVersions = 5;
TableOptions tableOptions = new TableOptions(timeToLive, maxVersions);
// Specify the name of the table.
UpdateTableRequest request = new UpdateTableRequest("<TABLE_NAME>");
request.setTableOptionsForUpdate(tableOptions);
client.updateTable(request);
}