Module Bucket.Public_access_block

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

    x-amz-expected-bucket-owner.

    *)
}

Bucket public-access-block request options.

type config = {
  1. block_public_acls : bool;
    (*

    Block calls that attempt to set public ACLs.

    *)
  2. ignore_public_acls : bool;
    (*

    Ignore public ACLs already attached to bucket/object resources.

    *)
  3. block_public_policy : bool;
    (*

    Block public bucket policies.

    *)
  4. restrict_public_buckets : bool;
    (*

    Restrict access through public bucket policies.

    *)
}

S3 public-access-block configuration.

type result = {
  1. config : config;
  2. response : Awskit.Response.t;
}

GetPublicAccessBlock result metadata.

val all_false : config

Configuration with every public-access-block switch disabled.

val default_options : options

Default bucket public-access-block options: no owner guard.

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

Build bucket public-access-block request options.

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

Like options, but raises on validation failure.