Module Multipart.Create

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

    Final object's Content-Type.

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

    User metadata for the final object.

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

    Storage class for the final object.

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

    Tags for the final object.

    *)
  5. checksum_algorithm : Object.Checksum.Algorithm.t option;
    (*

    Checksum algorithm requested for the multipart upload.

    *)
  6. checksum_type : Object.Checksum.Type.t option;
    (*

    Whether S3 should treat checksums as full-object or composite.

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

    Encryption for the final object.

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

    x-amz-expected-bucket-owner.

    *)
}

CreateMultipartUpload request options.

type result = {
  1. upload : Upload.created Upload.t;
  2. response : Awskit.Response.t;
}

CreateMultipartUpload result metadata, including the upload handle used by subsequent part requests.

val default_options : options
val options : ?content_type:Content_type.t -> ?metadata:Metadata.t -> ?storage_class:Storage_class.t -> ?tags:Tag.Set.t -> ?checksum_algorithm:Object.Checksum.Algorithm.t -> ?checksum_type:Object.Checksum.Type.t -> ?encryption:Encryption.Destination.t -> ?expected_bucket_owner:Account_id.t -> unit -> (options, Awskit.Error.t) Stdlib.result

Build CreateMultipartUpload options.

val options_exn : ?content_type:Content_type.t -> ?metadata:Metadata.t -> ?storage_class:Storage_class.t -> ?tags:Tag.Set.t -> ?checksum_algorithm:Object.Checksum.Algorithm.t -> ?checksum_type:Object.Checksum.Type.t -> ?encryption:Encryption.Destination.t -> ?expected_bucket_owner:Account_id.t -> unit -> options

Like options, but raises on validation failure.