Module Object.Put

type options = {
  1. content_type : Content_type.t option;
    (*

    Content-Type header for the object.

    *)
  2. metadata : Metadata.t;
    (*

    User metadata sent as x-amz-meta-* headers.

    *)
  3. storage_class : Storage_class.t option;
    (*

    Optional S3 storage class for the new object.

    *)
  4. tags : Tag.Set.t;
    (*

    Object tags sent with the write request.

    *)
  5. cache_control : Header_value.t option;
    (*

    Optional Cache-Control header.

    *)
  6. content_encoding : Header_value.t option;
    (*

    Optional Content-Encoding header.

    *)
  7. content_disposition : Header_value.t option;
    (*

    Optional Content-Disposition header.

    *)
  8. preconditions : Preconditions.Write.t;
    (*

    Conditional write headers.

    *)
  9. checksum : Checksum.value option;
    (*

    Explicit checksum header for the request body.

    *)
  10. encryption : Encryption.Destination.t option;
    (*

    Encryption headers for the new object.

    *)
  11. expected_bucket_owner : Account_id.t option;
    (*

    x-amz-expected-bucket-owner, used to guard against bucket-owner confusion.

    *)
}

PutObject request options.

type result = {
  1. etag : Etag.t option;
    (*

    ETag returned by S3, when present.

    *)
  2. version_id : Version_id.t option;
    (*

    New object version id for versioned buckets.

    *)
  3. checksum : Checksum.response;
    (*

    Checksum headers returned by S3.

    *)
  4. response : Awskit.Response.t;
    (*

    Raw response metadata, including status and request ids.

    *)
}

PutObject result metadata. The uploaded body is not retained.

val default_options : options

Default PutObject options: no optional headers, tags, checksum, or preconditions.

val options : ?content_type:Content_type.t -> ?metadata:Metadata.t -> ?storage_class:Storage_class.t -> ?tags:Tag.Set.t -> ?cache_control:Header_value.t -> ?content_encoding:Header_value.t -> ?content_disposition:Header_value.t -> ?preconditions:Preconditions.Write.t -> ?checksum:Checksum.value -> ?encryption:Encryption.Destination.t -> ?expected_bucket_owner:Account_id.t -> unit -> (options, Awskit.Error.t) Stdlib.result

Build PutObject options.

val options_exn : ?content_type:Content_type.t -> ?metadata:Metadata.t -> ?storage_class:Storage_class.t -> ?tags:Tag.Set.t -> ?cache_control:Header_value.t -> ?content_encoding:Header_value.t -> ?content_disposition:Header_value.t -> ?preconditions:Preconditions.Write.t -> ?checksum:Checksum.value -> ?encryption:Encryption.Destination.t -> ?expected_bucket_owner:Account_id.t -> unit -> options

Like options, but raises on validation failure.