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 conditional writes #583

Open
willglynn opened this issue Sep 3, 2024 · 0 comments
Open

Add conditional writes #583

willglynn opened this issue Sep 3, 2024 · 0 comments

Comments

@willglynn
Copy link

Amazon S3 now supports conditional writes (blog post). Docs indicate that s3:PutObject and s3:CompleteMultipartUpload now support the request header If-None-Match: *, in which case S3 will:

  1. return a 200 if it created the object did not exist and was created as requested,
  2. return a 412 Precondition Failed if the object already exists, or
  3. return a 409 Conflict if the object is deleted before creation completes

This upstream change updates #218.

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

1 participant