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

Support S3 preconditions #241

Open
dogfishlizarddragondonkey opened this issue Feb 12, 2025 · 2 comments
Open

Support S3 preconditions #241

dogfishlizarddragondonkey opened this issue Feb 12, 2025 · 2 comments
Milestone

Comments

@dogfishlizarddragondonkey

https://docs.aws.amazon.com/AmazonS3/latest/userguide/conditional-requests.html

https://aws.amazon.com/about-aws/whats-new/2024/08/amazon-s3-conditional-writes/

Would be great if s3s could support above (e.g. PutObject failing if obj already exists and not exists precondition is specified)

@Nugine
Copy link
Owner

Nugine commented Feb 13, 2025

We already have if-none-match in PutObject defintion. Is there anything not working?

let if_none_match: Option<IfNoneMatch> = http::parse_opt_header(req, &IF_NONE_MATCH)?;

@Nugine
Copy link
Owner

Nugine commented Feb 13, 2025

You can specify cargo git dependency to use our unpublished features.
We are preparing for the next version but still need some time.

@Nugine Nugine added this to the v0.11.0 milestone Feb 13, 2025
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

No branches or pull requests

2 participants