

def create_table(self):
    body = self.body
    name = body['TableName']
    key_schema = body['KeySchema']
    hash_hey = key_schema['HashKeyElement']
    hash_key_attr = hash_hey['AttributeName']
    hash_key_type = hash_hey['AttributeType']
    range_hey = key_schema.get('RangeKeyElement', {
        
    })
    range_key_attr = range_hey.get('AttributeName')
    range_key_type = range_hey.get('AttributeType')
    throughput = body['ProvisionedThroughput']
    read_units = throughput['ReadCapacityUnits']
    write_units = throughput['WriteCapacityUnits']
    table = dynamodb_backend.create_table(name, hash_key_attr=hash_key_attr, hash_key_type=hash_key_type, range_key_attr=range_key_attr, range_key_type=range_key_type, read_capacity=int(read_units), write_capacity=int(write_units))
    return dynamo_json_dump(table.describe)

dataset/ETHPy150Open spulec/moto/moto/dynamodb/responses.py DynamoHandler.create_table/original