Search in sources :

Example 1 with UpdateTableRequest

use of com.amazonaws.services.dynamodbv2.model.UpdateTableRequest in project aws-doc-sdk-examples by awsdocs.

the class LowLevelTableExample method updateExampleTable.

static void updateExampleTable() {
    ProvisionedThroughput provisionedThroughput = new ProvisionedThroughput().withReadCapacityUnits(6L).withWriteCapacityUnits(7L);
    UpdateTableRequest updateTableRequest = new UpdateTableRequest().withTableName(tableName).withProvisionedThroughput(provisionedThroughput);
    client.updateTable(updateTableRequest);
    waitForTableToBecomeAvailable(tableName);
}
Also used : UpdateTableRequest(com.amazonaws.services.dynamodbv2.model.UpdateTableRequest) ProvisionedThroughput(com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput)

Aggregations

ProvisionedThroughput (com.amazonaws.services.dynamodbv2.model.ProvisionedThroughput)1 UpdateTableRequest (com.amazonaws.services.dynamodbv2.model.UpdateTableRequest)1