Module Object.Version_id

type t

Opaque S3 object version id. Present only for versioned buckets or APIs that explicitly target a version.

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

Validate and wrap a version id. Empty version ids are rejected.

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 version id string.

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

Pretty-print a version id.

val equal : t -> t -> bool

Compare two version ids.