Values.LifecycleRuleSourceA lifecycle rule for individual objects in an Amazon S3 bucket. For more information see, Managing your storage lifecycle in the Amazon S3 User Guide.
type nonrec t = {expiration : LifecycleExpiration.t option;Specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker.
*)iD : ID.t option;Unique identifier for the rule. The value cannot be longer than 255 characters.
*)prefix : Prefix.t option;The general purpose bucket prefix that identifies one or more objects to which the rule applies. We recommend using Filter instead of Prefix for new PUTs. Previous configurations where a prefix is defined will continue to operate as before. Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see XML related object key constraints.
*)filter : LifecycleRuleFilter.t option;The Filter is used to identify objects that a Lifecycle Rule applies to. A Filter must have exactly one of Prefix, Tag, ObjectSizeGreaterThan, ObjectSizeLessThan, or And specified. Filter is required if the LifecycleRule does not contain a Prefix element. For more information about Tag filters, see Adding filters to Lifecycle rules in the Amazon S3 User Guide. Tag filters are not supported for directory buckets.
*)status : ExpirationStatus.t;If 'Enabled', the rule is currently being applied. If 'Disabled', the rule is not currently being applied.
*)transitions : TransitionList.t option;Specifies when an Amazon S3 object transitions to a specified storage class. This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
*)noncurrentVersionTransitions : NoncurrentVersionTransitionList.t option;Specifies the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. If your bucket is versioning-enabled (or versioning is suspended), you can set this action to request that Amazon S3 transition noncurrent object versions to a specific storage class at a set period in the object's lifetime. This parameter applies to general purpose buckets only. It is not supported for directory bucket lifecycle configurations.
*)noncurrentVersionExpiration : NoncurrentVersionExpiration.t option;abortIncompleteMultipartUpload : AbortIncompleteMultipartUpload.t option;}val make :
?expiration:??? ->
?iD:??? ->
?prefix:??? ->
?filter:??? ->
?transitions:??? ->
?noncurrentVersionTransitions:??? ->
?noncurrentVersionExpiration:??? ->
?abortIncompleteMultipartUpload:??? ->
status:ExpirationStatus.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `Enum of string
| `Integer of Days.t
| `Timestamp of Date.t ])
list ]
list
| `String of ID.t
| `Structure of
(string
* [> `Boolean of ExpiredObjectDeleteMarker.t
| `Integer of Days.t
| `Long of ObjectSizeGreaterThanBytes.t
| `String of Prefix.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string * [> `String of ObjectKey.t ]) list ]
list
| `Long of ObjectSizeGreaterThanBytes.t
| `String of ObjectKey.t ])
list
| `Timestamp of Date.t ])
list ])
list ]