Module Awskit_s3.Tag

S3 tag key/value pair.

type t

Opaque validated S3 tag.

val create : key:string -> value:string -> (t, Awskit.Error.t) Stdlib.result

Validate and create one S3 tag. Keys use up to 128 UTF-16 positions and values use up to 256 UTF-16 positions. Values may be empty. Keys and values allow letters, numbers, spaces, and + - = . _ : / @. Tag keys beginning with aws: are reserved for AWS and rejected.

val create_exn : key:string -> value:string -> t

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

val key : t -> string

Return the tag key.

val value : t -> string

Return the tag value.

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

Pretty-print the tag.

val equal : t -> t -> bool

Compare two tags.

module Set : sig ... end