public static void validateBucketName(final String bucketName) {
        isValidV2BucketName(bucketName, true);
    }
Validates that the specified bucket name is valid for Amazon S3 V2 naming
(i.e. DNS addressable in virtual host style). Throws an
IllegalArgumentException if the bucket name is not valid.
<p>
S3 bucket naming guidelines are specified in <a href="http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?BucketRestrictions.html"
> http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?
BucketRestrictions.html</a>

@param bucketName
           The bucket name to validate.

@throws IllegalBucketNameException
            If the specified bucket name doesn't follow Amazon S3's
            guidelines.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/BucketNameUtils.java