-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Simplify presigning example #7065
Conversation
This changes the "download a file" example to use a custom configuration for the presigned GetObject request.
I'm going to move the example to a different function than GetObject. |
So wait until it is moved before I review it?
From: Eric Shepherd ***@***.***>
Reply-To: awsdocs/aws-doc-sdk-examples ***@***.***>
Date: Thursday, November 14, 2024 at 11:10 AM
To: awsdocs/aws-doc-sdk-examples ***@***.***>
Cc: "Meyer, Steve" ***@***.***>, Review requested ***@***.***>
Subject: Re: [awsdocs/aws-doc-sdk-examples] Add advanced presigning example (PR #7065)
I'm going to move the example to a different function than GetObject.
—
Reply to this email directly, view it on GitHub<#7065 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZ6XNGCM6EI3MK7OV5QDCDD2ATDNZAVCNFSM6AAAAABRZCYFV6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZWHAYTSNJWGY>.
You are receiving this because your review was requested.Message ID: ***@***.***>
|
Yeah.
|
…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.
Ready for review, @meyertst-aws. |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This is now ready to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
swift/example_code/s3/presigned-urls/Sources/presigned-upload/entry.swift
Outdated
Show resolved
Hide resolved
Feedback addressed. Ready to go. |
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.