amogh-jahagirdar commented on code in PR #4726:
URL: https://github.com/apache/iceberg/pull/4726#discussion_r870623738


##########
aws/src/main/java/org/apache/iceberg/aws/AssumeRoleAwsClientFactory.java:
##########
@@ -69,7 +70,10 @@ public KmsClient kms() {
 
   @Override
   public DynamoDbClient dynamo() {
-    return DynamoDbClient.builder().applyMutation(this::configure).build();
+    return DynamoDbClient.builder()
+            .applyMutation(this::configure)
+            .applyMutation(builder -> 
AwsClientFactories.configureEndpoint(builder, dynamoDbEndpoint))
+            .build();

Review Comment:
   Indentation



##########
aws/src/main/java/org/apache/iceberg/aws/AwsClientFactories.java:
##########
@@ -111,7 +112,10 @@ public KmsClient kms() {
 
     @Override
     public DynamoDbClient dynamo() {
-      return 
DynamoDbClient.builder().httpClientBuilder(configureHttpClientBuilder(httpClientType)).build();
+      return DynamoDbClient.builder()
+              .httpClientBuilder(configureHttpClientBuilder(httpClientType))
+              .applyMutation(builder -> configureEndpoint(builder, 
dynamoDbEndpoint))
+              .build();

Review Comment:
   Indentation



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to