public static boolean isAwsHostname(final String hostname) {
        return isAwsHostname(hostname, true);
    }
@Test
    public void testAwsHostnames() {
        assertFalse(S3Session.isAwsHostname("play.min.io"));
        assertTrue(S3Session.isAwsHostname("test-eu-west-3-cyberduck.s3.amazonaws.com"));
        assertTrue(S3Session.isAwsHostname("s3.dualstack.eu-west-3.amazonaws.com"));
        assertTrue(S3Session.isAwsHostname("test-eu-west-3-cyberduck.s3.dualstack.eu-west-3.amazonaws.com"));
        assertTrue(S3Session.isAwsHostname("s3.amazonaws.com"));
        assertTrue(S3Session.isAwsHostname("s3.amazonaws.com.cn"));
        assertFalse(S3Session.isAwsHostname("s3.amazonaws.com.cn", false));
        assertTrue(S3Session.isAwsHostname("s3.cn-north-1.amazonaws.com.cn"));
        assertFalse(S3Session.isAwsHostname("s3.cn-north-1.amazonaws.com.cn", false));
        assertTrue(S3Session.isAwsHostname("vpce-0971cacd1f2.s3.eu-west-1.vpce.amazonaws.com"));
    }