def getHighestVersion(name, region='us-east-1', table='credential-store'):
    '\n    Return the highest version of `name` in the table\n    '
    dynamodb = boto3.resource('dynamodb', region_name=region)
    secrets = dynamodb.Table(table)
    response = secrets.query(Limit=1, ScanIndexForward=False, ConsistentRead=True, KeyConditionExpression=boto3.dynamodb.conditions.Key('name').eq(name), ProjectionExpression='version')
    if (response['Count'] == 0):
        return 0
    return response['Items'][0]['version']
Return the highest version of `name` in the table
def getHighestVersion(name, region='us-east-1', table='credential-store'):
    '\n    \n    '
    dynamodb = boto3.resource('dynamodb', region_name=region)
    secrets = dynamodb.Table(table)
    response = secrets.query(Limit=1, ScanIndexForward=False, ConsistentRead=True, KeyConditionExpression=boto3.dynamodb.conditions.Key('name').eq(name), ProjectionExpression='version')
    if (response['Count'] == 0):
        return 0
    return response['Items'][0]['version']