Skip to content

Add conditional writes #583

Description

@willglynn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions