aws / aws-sdk-java-v2

The official AWS SDK for Java - Version 2
Apache License 2.0
2.12k stars 803 forks source link

S3 Presign Head method #5276

Open bartekbluestone opened 3 weeks ago

bartekbluestone commented 3 weeks ago

Describe the feature

Now there is possibility to presign url for get/post/put/delete but I miss HEAD method. It is also possible using v1 sdk.

Use Case

Generate presign url to s3 object for HEAD method.

Proposed Solution

No response

Other Information

No response

Acknowledgements

AWS Java SDK version used

2.24.7

JDK version used

17

Operating System and version

docker and amazon corretto 17

debora-ito commented 2 weeks ago

@bartekbluestone can you tell us more about your use case?

How would you use the presigned head request?

bartekbluestone commented 2 weeks ago

Hi! In our app we generate urls for our clients. On of methods that they requested is HEAD and we added it few months ago, but in meantime we updated app and its dependecies, and also migrated aws sdk 1 to aws sdk 2. Previous sdk allowed us to prepare such presign url for head, and as I checked, go sdk also allow to create such request.