class Aws::S3::Plugins::BucketDns::Handler
def move_bucket_to_subdomain(bucket_name, endpoint)
def move_bucket_to_subdomain(bucket_name, endpoint) endpoint.host = "#{bucket_name}.#{endpoint.host}" path = endpoint.path.sub("/#{bucket_name}", '') path = "/#{path}" unless path.match(/^\//) endpoint.path = path end