add IfMatch and IfNoneMatch to S3Transfer.ALLOWED_UPLOAD_ARGS
Describe the feature
put_object and complete_multipart_upload both accept optional args IfMatch and IfNoneMatch. However, there is no way to currently pass these to upload_file since these parameters are missing from S3Transfer.ALLOWED_UPLOAD_ARGS.
Use Case
They need to be there so we can for example enforce that IfNoneMatch: "*" was specified to prevent overwriting existing files when using upload_file, as described here.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
SDK version used
n/a
Environment details (OS name and version, etc.)
n/a
Hi @rittneje, thanks for reaching out and for bringing up the feature request. The team is aware of the feature request. Please refer to an SDK changelog (https://raw.githubusercontent.com/boto/boto3/develop/CHANGELOG.rst) for updates about this going forward. If you have any questions, please let us know. Thank you.
@adev-code Was the "response-requested" label added in error?
Currently running into this issue with upload_fileobj
Looks like this needs to happen here in https://github.com/boto/s3transfer
Thanks for your patience. After talking with the team, IfMatch and IfNoneMatch can be added to the S3Transfer.ALLOWED_UPLOAD_ARGS. I don't have a timeline for implementation at this time, but I'll be leaving this feature request open for tracking purposes, and will let you know if I have any updates. Thanks again for this feature request.