Module Awskit_s3.Storage_class

S3 object storage classes.

type t =
  1. | Standard
  2. | Reduced_redundancy
  3. | Standard_ia
  4. | Onezone_ia
  5. | Intelligent_tiering
  6. | Glacier
  7. | Glacier_ir
  8. | Deep_archive
  9. | Outposts
  10. | Snow
  11. | Express_onezone
  12. | Fsx_openzfs
  13. | Fsx_ontap
  14. | Other of string
    (*

    A storage-class value not modeled by awskit. This covers future AWS values and provider-specific S3-compatible storage classes.

    *)
val to_string : t -> string

Render the AWS storage-class spelling used in headers and XML.

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

Parse a storage-class spelling. Values modeled by awskit use their constructor; other non-empty values are preserved as Other.

val of_string_exn : string -> t

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