use of com.amazonaws.services.dynamodbv2.model.DeleteTableResult in project gora by apache.
the class DynamoDBStore method executeDeleteTableRequest.
/**
* Executes a delete table request using the DynamoDB client
*
* @param pTableName
*/
public void executeDeleteTableRequest(String pTableName) {
try {
DeleteTableRequest deleteTableRequest = new DeleteTableRequest().withTableName(pTableName);
DeleteTableResult result = getDynamoDBClient().deleteTable(deleteTableRequest);
waitForTableToBeDeleted(pTableName);
LOG.debug("Schema: " + result.getTableDescription() + " deleted successfully.");
} catch (Exception e) {
LOG.debug("Schema: {} deleted.", pTableName, e.getMessage());
throw new RuntimeException(e);
}
}
Aggregations