Service-specific changes
Amazon S3 changes
SDK for Java 2.x disables anonymous access by default. As a result, you must enable anonymous
access by using the AnonymousCredentialsProvider
.
Operation name changes
Many of the operation names for the Amazon S3 client have changed in the Amazon SDK for Java 2.x. In version 1.x, the Amazon S3 client is not generated directly from the service API. This results in inconsistency between the SDK operations and the service API. In version 2.x, we now generate the Amazon S3 client to be more consistent with the service API.
The following table shows the operation names in the two versions.
1.x | 2.x |
---|---|
abortMultipartUpload |
abortMultipartUpload |
changeObjectStorageClass |
copyObject |
completeMultipartUpload |
completeMultipartUpload |
copyObject |
copyObject |
copyPart |
uploadPartCopy |
createBucket |
createBucket |
deleteBucket |
deleteBucket |
deleteBucketAnalyticsConfiguration |
deleteBucketAnalyticsConfiguration |
deleteBucketCrossOriginConfiguration |
deleteBucketCors |
deleteBucketEncryption |
deleteBucketEncryption |
deleteBucketInventoryConfiguration |
deleteBucketInventoryConfiguration |
deleteBucketLifecycleConfiguration |
deleteBucketLifecycle |
deleteBucketMetricsConfiguration |
deleteBucketMetricsConfiguration |
deleteBucketPolicy |
deleteBucketPolicy |
deleteBucketReplicationConfiguration |
deleteBucketReplication |
deleteBucketTaggingConfiguration |
deleteBucketTagging |
deleteBucketWebsiteConfiguration |
deleteBucketWebsite |
deleteObject |
deleteObject |
deleteObjectTagging |
deleteObjectTagging |
deleteObjects |
deleteObjects |
deleteVersion |
deleteObject |
disableRequesterPays |
putBucketRequestPayment |
doesBucketExist |
headBucket |
doesBucketExistV2 |
headBucket |
doesObjectExist |
headObject |
enableRequesterPays |
putBucketRequestPayment |
generatePresignedUrl |
S3Presigner |
getBucketAccelerateConfiguration |
getBucketAccelerateConfiguration |
getBucketAcl |
getBucketAcl |
getBucketAnalyticsConfiguration |
getBucketAnalyticsConfiguration |
getBucketCrossOriginConfiguration |
getBucketCors |
getBucketEncryption |
getBucketEncryption |
getBucketInventoryConfiguration |
getBucketInventoryConfiguration |
getBucketLifecycleConfiguration |
getBucketLifecycle or
getBucketLifecycleConfiguration |
getBucketLocation |
getBucketLocation |
getBucketLoggingConfiguration |
getBucketLogging |
getBucketMetricsConfiguration |
getBucketMetricsConfiguration |
getBucketNotificationConfiguration |
getBucketNotification or
getBucketNotificationConfiguration |
getBucketPolicy |
getBucketPolicy |
getBucketReplicationConfiguration |
getBucketReplication |
getBucketTaggingConfiguration |
getBucketTagging |
getBucketVersioningConfiguration |
getBucketVersioning |
getBucketWebsiteConfiguration |
getBucketWebsite |
getObject |
getObject |
getObjectAcl |
getObjectAcl |
getObjectAsString |
getObjectAsBytes().asUtf8String |
getObjectMetadata |
headObject |
getObjectTagging |
getObjectTagging |
getResourceUrl |
S3Utilities#getUrl |
getS3AccountOwner |
listBuckets |
getUrl |
S3Utilities#getUrl |
headBucket |
headBucket |
initiateMultipartUpload |
createMultipartUpload |
isRequesterPaysEnabled |
getBucketRequestPayment |
listBucketAnalyticsConfigurations |
listBucketAnalyticsConfigurations |
listBucketInventoryConfigurations |
listBucketInventoryConfigurations |
listBucketMetricsConfigurations |
listBucketMetricsConfigurations |
listBuckets |
listBuckets |
listMultipartUploads |
listMultipartUploads |
listNextBatchOfObjects |
listObjectsV2Paginator |
listNextBatchOfVersions |
listObjectVersionsPaginator |
listObjects |
listObjects |
listObjectsV2 |
listObjectsV2 |
listParts |
listParts |
listVersions |
listObjectVersions |
putObject |
putObject |
restoreObject |
restoreObject |
restoreObjectV2 |
restoreObject |
selectObjectContent |
selectObjectContent |
setBucketAccelerateConfiguration |
putBucketAccelerateConfiguration |
setBucketAcl |
putBucketAcl |
setBucketAnalyticsConfiguration |
putBucketAnalyticsConfiguration |
setBucketCrossOriginConfiguration |
putBucketCors |
setBucketEncryption |
putBucketEncryption |
setBucketInventoryConfiguration |
putBucketInventoryConfiguration |
setBucketLifecycleConfiguration |
putBucketLifecycle or
putBucketLifecycleConfiguration |
setBucketLoggingConfiguration |
putBucketLogging |
setBucketMetricsConfiguration |
putBucketMetricsConfiguration |
setBucketNotificationConfiguration |
putBucketNotification or
putBucketNotificationConfiguration |
setBucketPolicy |
putBucketPolicy |
setBucketReplicationConfiguration |
putBucketReplication |
setBucketTaggingConfiguration |
putBucketTagging |
setBucketVersioningConfiguration |
putBucketVersioning |
setBucketWebsiteConfiguration |
putBucketWebsite |
setObjectAcl |
putObjectAcl |
setObjectRedirectLocation |
copyObject |
setObjectTagging |
putObjectTagging |
uploadPart |
uploadPart |
Amazon SNS changes
An SNS client can no longer access SNS topics in Regions other than the Region that it is configured to access.
Amazon SQS changes
An SQS client can no longer access SQS queues in Regions other than the Region that it is configured to access.
Amazon RDS changes
The SDK for Java 2.x uses RdsUtilities#generateAuthenticationToken
in place of
the class RdsIamAuthTokenGenerator
in 1.x.