public TableDescription createTable ( ProvisionedThroughput throughput ) { final CreateTableRequest request = mapper . generateCreateTableRequest ( model . targetType ( ) ) ; request . setProvisionedThroughput ( throughput ) ; if ( request . getGlobalSecondaryIndexes ( ) != null ) { for ( final GlobalSecondaryIndex gsi : request . getGlobalSecondaryIndexes ( ) ) { gsi . setProvisionedThroughput ( throughput ) ; } } return db . createTable ( request ) . getTableDescription ( ) ; }
Creates the table with the specified throughput ; also populates the same throughput for all global secondary indexes .