Skip to content

Commit

Permalink
Minor change in aws client reference
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed May 13, 2023
1 parent e24608c commit 80487d4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
import com.amazonaws.Protocol;
import com.amazonaws.auth.AnonymousAWSCredentials;
import com.amazonaws.regions.Regions;
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.model.AccessControlList;
import com.amazonaws.services.s3.model.AmazonS3Exception;
import com.amazonaws.services.s3.model.CopyObjectRequest;
Expand Down Expand Up @@ -835,7 +836,7 @@ protected S3FileSystem createFileSystem(URI uri, AwsConfig awsConfig) {
final boolean anonymous = "true".equals(props.getProperty("anonymous"));
if( anonymous ) {
log.debug("Creating AWS S3 client with anonymous credentials");
client = new S3Client(new com.amazonaws.services.s3.AmazonS3Client(new AnonymousAWSCredentials(), clientConfig));
client = new S3Client(new AmazonS3Client(new AnonymousAWSCredentials(), clientConfig));
}
else {
final boolean global = bucketName!=null;
Expand Down

0 comments on commit 80487d4

Please sign in to comment.