private static boolean isObjectLambdaHost(URL url) {
        String host = url.getHost();

        if (host == null) {
            return false;
        }

        return host.contains(".s3-object-lambda.");
    }
If the client has been marked as immutable then throw an {@link
UnsupportedOperationException}, otherwise do nothing. Should be called by each mutating
method.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/TransferManager.java