Module Make.Bucket

Bucket lifecycle and bucket-configuration operations.

type connection = connection

Client connection handle.

type 'a io = 'a io

Runtime effect type.

val create : connection -> bucket:Bucket_name.t -> ?options:Bucket.Create.options -> unit -> (Bucket.Create.result, Awskit.Error.t) Stdlib.result io

Create a bucket.

val delete : connection -> bucket:Bucket_name.t -> ?options:Bucket.Delete.options -> unit -> (Bucket.Delete.result, Awskit.Error.t) Stdlib.result io

Delete an empty bucket.

val head : connection -> bucket:Bucket_name.t -> ?options:Bucket.Head.options -> unit -> (Bucket.Head.result, Awskit.Error.t) Stdlib.result io

Check bucket existence and return metadata such as the region hint.

val exists : connection -> bucket:Bucket_name.t -> ?options:Bucket.Head.options -> unit -> (bool, Awskit.Error.t) Stdlib.result io

Return false for S3 not-found responses and true for success.

List buckets visible to the credentials.

val get_location : connection -> bucket:Bucket_name.t -> ?options:Bucket.Get_location.options -> unit -> (Bucket.Get_location.result, Awskit.Error.t) Stdlib.result io

Fetch the bucket location constraint/region.

module Policy : sig ... end

Bucket policy operations. Policy documents are opaque validated JSON.

module Versioning : sig ... end

Bucket versioning operations.

module Tagging : sig ... end

Bucket tagging operations.

module Encryption : sig ... end

Bucket default-encryption operations.

module Cors : sig ... end

Bucket CORS operations.

module Public_access_block : sig ... end

Bucket public-access-block operations.

module Ownership_controls : sig ... end

Bucket ownership-controls operations.