Skip to content
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

Add advanced presigning example #7065

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

shepazon
Copy link
Contributor

@shepazon shepazon commented Nov 14, 2024

This changes the "upload a file" example to include a custom configuration for one of its PutObject requests. It also removes the multi-part portion of the example, which will come back shortly as a separate example, and splits the remaining upload and download examples into two separate programs, one which uploads files with or without presigning, aand one which downloads files with or without presigning.


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

This changes the "download a file" example to use a custom configuration for the presigned GetObject request.
@shepazon shepazon self-assigned this Nov 14, 2024
@shepazon shepazon added Swift This issue relates to the AWS SDK for Swift Task A general update to the code base for language clarification, missing actions, tests, etc. labels Nov 14, 2024
@shepazon
Copy link
Contributor Author

I'm going to move the example to a different function than GetObject.

@shepazon shepazon marked this pull request as draft November 14, 2024 16:09
@meyertst-aws
Copy link
Contributor

meyertst-aws commented Nov 14, 2024 via email

@shepazon
Copy link
Contributor Author

shepazon commented Nov 14, 2024 via email

…to using PutObject. This lets GetObject be used in doc content as the example for a basic presign operation, while PutObject can be used for more involved presigning ops.
@shepazon shepazon marked this pull request as ready for review November 14, 2024 18:28
@shepazon
Copy link
Contributor Author

Ready for review, @meyertst-aws.

@shepazon
Copy link
Contributor Author

I added a call to HeadObject in the upload function to provide an example of using a custom configuration for a presigned URL in which the customized config is actually different from one the S3Client is configured to use.

Copy link
Contributor

@meyertst-aws meyertst-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shepazon shepazon marked this pull request as draft November 19, 2024 18:30
@shepazon shepazon marked this pull request as ready for review November 21, 2024 19:02
@shepazon
Copy link
Contributor Author

This is now ready to review.

Copy link
Contributor

@meyertst-aws meyertst-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shepazon shepazon added the On Call Review needed This work needs an on-call review label Nov 22, 2024
@shepazon
Copy link
Contributor Author

Feedback addressed. Ready to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On Call Review needed This work needs an on-call review Swift This issue relates to the AWS SDK for Swift Task A general update to the code base for language clarification, missing actions, tests, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants