com.amazonaws.services.dynamodbv2.model.UpdateTableRequest Java Examples

The following examples show how to use com.amazonaws.services.dynamodbv2.model.UpdateTableRequest. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LowLevelTableExample.java    From aws-doc-sdk-examples with Apache License 2.0 5 votes vote down vote up
static void updateExampleTable() {

        ProvisionedThroughput provisionedThroughput = new ProvisionedThroughput().withReadCapacityUnits(6L)
            .withWriteCapacityUnits(7L);

        UpdateTableRequest updateTableRequest = new UpdateTableRequest().withTableName(tableName)
            .withProvisionedThroughput(provisionedThroughput);

        client.updateTable(updateTableRequest);
        waitForTableToBecomeAvailable(tableName);
    }
 
Example #2
Source File: LowLevelTableExample.java    From aws-dynamodb-examples with Apache License 2.0 5 votes vote down vote up
static void updateExampleTable() {
    
    ProvisionedThroughput provisionedThroughput = new ProvisionedThroughput()
    .withReadCapacityUnits(6L)
    .withWriteCapacityUnits(7L);

    UpdateTableRequest updateTableRequest = new UpdateTableRequest()
        .withTableName(tableName)
        .withProvisionedThroughput(provisionedThroughput);
    
    client.updateTable(updateTableRequest);
    waitForTableToBecomeAvailable(tableName);
}
 
Example #3
Source File: PostgresDynamoDB.java    From podyn with Apache License 2.0 4 votes vote down vote up
@Override
public UpdateTableResult updateTable(UpdateTableRequest updateTableRequest) {
	
	throw new UnsupportedOperationException();
}
 
Example #4
Source File: TransactionManagerDynamoDBFacade.java    From dynamodb-transactions with Apache License 2.0 4 votes vote down vote up
@Override
public UpdateTableResult updateTable(UpdateTableRequest arg0)
        throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Use the underlying client instance instead");
}
 
Example #5
Source File: ThreadLocalDynamoDBFacade.java    From dynamodb-transactions with Apache License 2.0 4 votes vote down vote up
@Override
public UpdateTableResult updateTable(UpdateTableRequest request) throws AmazonServiceException, AmazonClientException {
    return getBackend().updateTable(request);
}
 
Example #6
Source File: TransactionDynamoDBFacade.java    From dynamodb-transactions with Apache License 2.0 4 votes vote down vote up
@Override
public UpdateTableResult updateTable(UpdateTableRequest arg0)
        throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException("Use the underlying client instance instead");
}