Module Awskit_s3.Object_key

S3 object key values.

type t

Opaque non-empty S3 object key.

val of_string : string -> (t, Awskit.Error.t) Stdlib.result

Validate a non-empty UTF-8 object key up to S3's 1,024-byte object-key limit. Relative .. path segments are accepted only when they never outnumber preceding non-relative segments while scanning left to right.

val of_string_exn : string -> t

Like of_string, but raises Awskit.Error.Awskit_error carrying the structured validation error on validation failure.

val to_string : t -> string

Return the object key string.

val pp : Stdlib.Format.formatter -> t -> unit

Pretty-print the object key.

val equal : t -> t -> bool

Compare two object keys.

module Prefix : sig ... end
module Delimiter : sig ... end