class Aws::S3::Plugins::S3Signer::BucketRegionErrorHandler
def region_from_body(body)
def region_from_body(body) region = body.match(/<Region>(.+?)<\/Region>/)[1] if region.nil? || region == '' raise "couldn't get region from body: #{body}" else region end end