public static void waitUntilActive(final AmazonDynamoDB dynamo, final String tableName, final int timeout,
			final int interval) throws InterruptedException, TableNeverTransitionedToStateException {
		TableDescription table = waitForTableDescription(dynamo, tableName, TableStatus.ACTIVE, timeout, interval);

		if (table == null || !table.getTableStatus().equals(TableStatus.ACTIVE.toString())) {
			throw new TableNeverTransitionedToStateException(tableName, TableStatus.ACTIVE);
		}
	}
Waits up to a specified amount of time for a specified DynamoDB table to
move into the <code>ACTIVE</code> state. If the table does not exist or
does not transition to the <code>ACTIVE</code> state after this time,
then a SdkClientException is thrown.

@param dynamo
           The DynamoDB client to use to make requests.
@param tableName
           The name of the table whose status is being checked.
@param timeout
           The maximum number of milliseconds to wait.
@param interval
           The poll interval in milliseconds.

@throws TableNeverTransitionedToStateException
            If the specified table does not exist or does not transition
            into the <code>ACTIVE</code> state before this method times
            out and stops polling.
@throws InterruptedException
            If the thread is interrupted while waiting for the table to
            transition into the <code>ACTIVE</code> state.
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/util/TableUtils.java