Skip to content

Update S3 CopyObject example to use sourceBucket & sourceKey parameters #1942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 27, 2021

Conversation

Bennett-Lynch
Copy link

A recent update to the AWS SDK for Java v2 (aws/aws-sdk-java-v2#2612) enabled support for
more user-friendly parameters for specifying the source bucket, key, and version ID for the S3 CopyObject operation. These new parameters are also automatically URL-encoded by the SDK, as most users would expect.

This commit updates the dependency to the latest version for the S3 module and takes advantage of the new parameters, simplifying the example code to no longer need to URL encode.

Related:
#740
#759

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

A recent update to the AWS SDK for Java v2
(aws/aws-sdk-java-v2#2612) enabled support for
more user-friendly parameters for specifying the source bucket, key, and
version ID for the S3 CopyObject operation. These new parameters are
also automatically URL-encoded by the SDK, as most users would expect.

This commit updates the dependency to the latest version for the S3
module and takes advantage of the new parameters, simplifying the
example code to no longer need to URL encode.

Related:
awsdocs#740
awsdocs#759
@scmacdon scmacdon merged commit 2826670 into awsdocs:master Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants