// region from the request endpoint.
String regionOverride = getSignerRegionOverride();
if (regionOverride == null) {
if (!hasExplicitRegion) {
throw new AmazonClientException(
"Signature Version 4 requires knowing the region of "
+ "the bucket you're trying to access. You can "
+ "configure a region by calling AmazonS3Client."
+ "setRegion(Region) or AmazonS3Client.setEndpoint("
+ "String) with a region-specific endpoint such as "