def make_url(region, bucket_name, obj_path, version=None):
    """
        This link describes the format of Path Style URLs
        http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingBucket.html#access-bucket-intro
    """
    base = 'https://s3.amazonaws.com'
    if region and region != 'us-east-1':
        base = 'https://s3-{0}.amazonaws.com'.format(region)
    result = '{0}/{1}/{2}'.format(base, bucket_name, obj_path)
    if version:
        result = '{0}?versionId={1}'.format(result, version)
    return result
