mokamoka03210120 commented on code in PR #26098:
URL: https://github.com/apache/beam/pull/26098#discussion_r1166760256


##########
sdks/java/io/amazon-web-services2/src/main/java/org/apache/beam/sdk/io/aws2/options/AwsModule.java:
##########
@@ -175,6 +178,18 @@ public AwsCredentialsProvider deserializeWithType(
             .refreshRequest(jsonParser.getCodec().treeToValue(json, 
clazz).build())
             .stsClient(StsClient.create())
             .build();
+      } else if (typeName.equals(
+          
StsAssumeRoleWithWebIdentityCredentialsProvider.class.getSimpleName())) {
+        Class<? extends AssumeRoleWithWebIdentityRequest.Builder> clazz =
+            AssumeRoleWithWebIdentityRequest.serializableBuilderClass();
+        return StsAssumeRoleWithWebIdentityCredentialsProvider.builder()
+            .refreshRequest(jsonParser.getCodec().treeToValue(json, 
clazz).build())
+            .stsClient(
+                StsClient.builder()
+                    .region(Region.AWS_GLOBAL)

Review Comment:
   The client builder requires a region. Any region can work here, so I have 
specified `AWS_GLOBAL`.



-- 
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]

Reply via email to