'Returns the fully qualified hostname to use is you want to access this
bucket as a website.  This doesn\'t validate whether the bucket has
been correctly configured as a website or not.'

def get_website_endpoint(self):

    l = [self.name]
    l.append(S3WebsiteEndpointTranslate.translate_region(self.get_location()))
    l.append('.'.join(self.connection.host.split('.')[(-2):]))
    return '.'.join(l)
