jackye1995 commented on code in PR #5684:
URL: https://github.com/apache/iceberg/pull/5684#discussion_r962114209
##########
aws/src/main/java/org/apache/iceberg/aws/AwsClientFactories.java:
##########
@@ -86,33 +86,19 @@ private static AwsClientFactory loadClientFactory(String
impl, Map<String, Strin
}
static class DefaultAwsClientFactory implements AwsClientFactory {
-
- private String glueEndpoint;
- private String s3Endpoint;
private String s3AccessKeyId;
private String s3SecretAccessKey;
private String s3SessionToken;
- private Boolean s3PathStyleAccess;
- private Boolean s3UseArnRegionEnabled;
- private Boolean s3AccelerationEnabled;
- private String dynamoDbEndpoint;
- private String httpClientType;
- private Boolean s3DualStackEnabled;
+ private AwsProperties awsProperties;
DefaultAwsClientFactory() {}
@Override
public S3Client s3() {
return S3Client.builder()
- .httpClientBuilder(configureHttpClientBuilder(httpClientType))
- .applyMutation(builder -> configureEndpoint(builder, s3Endpoint))
- .dualstackEnabled(s3DualStackEnabled)
- .serviceConfiguration(
- S3Configuration.builder()
- .pathStyleAccessEnabled(s3PathStyleAccess)
- .useArnRegionEnabled(s3UseArnRegionEnabled)
- .accelerateModeEnabled(s3AccelerationEnabled)
- .build())
+ .applyMutation(awsProperties::applyHttpClientConfiguration)
+ .applyMutation(builder -> configureEndpoint(builder,
awsProperties.s3Endpoint()))
+ .applyMutation(awsProperties::applyS3ServiceConfigurations)
Review Comment:
this can be `applyS3CredentialConfigurations`
--
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]