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:
- return a 200 if it created the object did not exist and was created as requested,
- return a 412 Precondition Failed if the object already exists, or
- return a 409 Conflict if the object is deleted before creation completes
This upstream change updates #218.
Amazon S3 now supports conditional writes (blog post). Docs indicate that
s3:PutObjectands3:CompleteMultipartUploadnow support the request headerIf-None-Match: *, in which case S3 will:This upstream change updates #218.