import { DynamoDB } from "aws-sdk" ; import { GeoDataManagerConfiguration } from "../GeoDataManagerConfiguration" ; /**
 * Utility class.
 * */ export class GeoTableUtil { return public static getCreateTableRequest ( config ) { return { TableName : config . tableName , ProvisionedThroughput : { ReadCapacityUnits : 10 , WriteCapacityUnits : 5 } , KeySchema : [ { KeyType : "HASH" , AttributeName : config . hashKeyAttributeName } , { KeyType : "RANGE" , AttributeName : config . rangeKeyAttributeName } ] , AttributeDefinitions : [ { AttributeName : config . hashKeyAttributeName , AttributeType : 'N' } , { AttributeName : config . rangeKeyAttributeName , AttributeType : 'S' } , { AttributeName : config . geohashAttributeName , AttributeType : 'N' } ] , LocalSecondaryIndexes : [ { IndexName : config . geohashIndexName , KeySchema : [ { KeyType : 'HASH' , AttributeName : config . hashKeyAttributeName } , { KeyType : 'RANGE' , AttributeName : config . geohashAttributeName } ] , Projection : { ProjectionType : 'ALL' } } ] } ; } }