Module Multipart.List_parts

type options = {
  1. max_parts : int option;
    (*

    Maximum number of parts S3 should return in one page.

    *)
  2. part_number_marker : Part_number_marker.t option;
    (*

    Pagination marker, usually from next_part_number_marker. Omit to start listing from the beginning.

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

    x-amz-expected-bucket-owner.

    *)
}

ListParts request options.

type part_info = {
  1. part_number : Part_number.t;
    (*

    Uploaded part number.

    *)
  2. etag : Object.Etag.t option;
    (*

    Part ETag.

    *)
  3. size : int64 option;
    (*

    Part size in bytes.

    *)
  4. last_modified : Ptime.t option;
    (*

    Part upload timestamp.

    *)
  5. checksum : Object.Checksum.response;
    (*

    Part checksum metadata.

    *)
}

Uploaded part summary returned by ListParts.

type page = {
  1. parts : part_info list;
    (*

    Uploaded parts in this page.

    *)
  2. is_truncated : bool;
    (*

    Whether more part pages are available.

    *)
  3. next_part_number_marker : Part_number_marker.t option;
    (*

    Marker to use for the next page.

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

    Checksum aggregation mode reported by S3.

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

    Raw response metadata.

    *)
}

One ListParts page.

val default_options : options
val options : ?max_parts:int -> ?part_number_marker:Part_number_marker.t -> ?expected_bucket_owner:Account_id.t -> unit -> (options, Awskit.Error.t) Stdlib.result

Build ListParts options. max_parts, when present, must be in S3's accepted range of 1 to 1,000.

val options_exn : ?max_parts:int -> ?part_number_marker:Part_number_marker.t -> ?expected_bucket_owner:Account_id.t -> unit -> options

Like options, but raises on validation failure.