I am trying to access a pdf stored in s3 bucket . I have bucket name and arn. After going through lot of example I did not understand difference between two services S3Client and AmazonS3 .
AmazonS3 s3Client = AmazonS3ClientBuilder.standard()
.withRegion(Region.US_EAST_1)
.withCredentials(new ProfileCredentialsProvider())
.build();
S3Client s3Client = S3Client.builder().region(Region.US_EAST_1).build();
Not getting what to use?