Module Bucket.Head

type options = {
  1. expected_bucket_owner : Account_id.t option;
    (*

    x-amz-expected-bucket-owner.

    *)
}

HeadBucket request options.

type result = {
  1. name : Bucket_name.t;
    (*

    Bucket name that was checked.

    *)
  2. region : Awskit.Region.t option;
    (*

    Region hint from x-amz-bucket-region, when present.

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

    Raw response metadata.

    *)
}

HeadBucket result metadata.

type info = result
val default_options : options

Default HeadBucket options: no owner guard.

val options : ?expected_bucket_owner:Account_id.t -> unit -> (options, Awskit.Error.t) Stdlib.result

Build HeadBucket options.

val options_exn : ?expected_bucket_owner:Account_id.t -> unit -> options

Like options, but raises on validation failure.