From 779bc2db19dd36f40cb5668c2c41620f0e74b8c4 Mon Sep 17 00:00:00 2001 From: didixith <55880223+didixith@users.noreply.github.com> Date: Sat, 10 Jul 2021 08:05:16 +0530 Subject: [PATCH] JCLOUDS-1516: specify host name when creating bucket --- apis/s3/src/main/java/org/jclouds/s3/S3Client.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apis/s3/src/main/java/org/jclouds/s3/S3Client.java b/apis/s3/src/main/java/org/jclouds/s3/S3Client.java index 5f1b58d936..1e30777c23 100644 --- a/apis/s3/src/main/java/org/jclouds/s3/S3Client.java +++ b/apis/s3/src/main/java/org/jclouds/s3/S3Client.java @@ -295,7 +295,8 @@ public interface S3Client extends Closeable { @Endpoint(Bucket.class) @Fallback(FalseIfBucketAlreadyOwnedByYouOrOperationAbortedWhenBucketExists.class) boolean putBucketInRegion(@BinderParam(BindRegionToXmlPayload.class) @Nullable String region, - @Bucket @BinderParam(BindAsHostPrefixIfConfigured.class) @ParamValidators(BucketNameValidator.class) + @Bucket @EndpointParam(parser = AssignCorrectHostnameForBucket.class) + @BinderParam(BindAsHostPrefixIfConfigured.class) @ParamValidators(BucketNameValidator.class) String bucketName, PutBucketOptions... options); /**