Module Bucket.Get_location

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

    x-amz-expected-bucket-owner.

    *)
}

GetBucketLocation request options.

type result = {
  1. region : Awskit.Region.t;
    (*

    Bucket region. S3's legacy empty default-location encoding is normalized to us-east-1.

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

    Raw response metadata.

    *)
}

GetBucketLocation result metadata.

val default_options : options

Default GetBucketLocation options: no owner guard.

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

Build GetBucketLocation options.

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

Like options, but raises on validation failure.