[ASTERIXDB-3456][EXT] Allow S3 endpoint to be null
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
- Endpoint is optional and can be null for S3 clients.
Ext-ref: MB-62688
Change-Id: I78c2d2dd5da166b32e86c74fe38d66a97d321852
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18467
Reviewed-by: Michael Blow <mblow@apache.org>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Michael Blow <mblow@apache.org>
diff --git a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/aws/s3/S3ClientConfig.java b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/aws/s3/S3ClientConfig.java
index 37872dd..fe73a0a 100644
--- a/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/aws/s3/S3ClientConfig.java
+++ b/asterixdb/asterix-cloud/src/main/java/org/apache/asterix/cloud/clients/aws/s3/S3ClientConfig.java
@@ -42,7 +42,7 @@
public S3ClientConfig(String region, String endpoint, String prefix, boolean anonymousAuth,
long profilerLogInterval, int writeBufferSize) {
this.region = Objects.requireNonNull(region, "region");
- this.endpoint = Objects.requireNonNull(endpoint, "endpoint");
+ this.endpoint = endpoint;
this.prefix = Objects.requireNonNull(prefix, "prefix");
this.anonymousAuth = anonymousAuth;
this.profilerLogInterval = profilerLogInterval;