Lifecycle Rule of a Bucket
Type Definition
type LifecycleRule struct
Parameter Description
Field |
Type |
Optional or Mandatory |
Description |
---|---|---|---|
ID |
string |
Optional when used as a request parameter |
Rule ID. It is a string of 1 to 255 characters. |
Prefix |
string |
Mandatory when used as a request parameter |
Object name prefix identifying one or more objects to which the rule applies. The value can empty, indicating that the rule applies to all objects in the bucket. |
Status |
Mandatory when used as a request parameter |
Whether the rule is enabled |
|
Transitions |
Optional when used as a request parameter |
List of object transition policies |
|
Expiration |
Optional when used as a request parameter |
Expiration time of the object |
|
NoncurrentVersionTransitions |
Optional when used as a request parameter |
List of noncurrent object version transition policies |
|
NoncurrentVersionExpiration |
Optional when used as a request parameter |
Expiration time of a noncurrent object version |
Transitions, Expiration, NoncurrentVersionTransitions, and NoncurrentVersionExpiration cannot be all null.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot