| |
| Used to identify the lifecycle rule. Lifecycle rule names must: - Be between 1 and 255 characters long.
- Be unique within the bucket.
|
| Determines when the rule takes effect. The options are: - Enable: The rule takes effect immediately after creation.
- Disable: The rule is created but remains inactive.
|
| Defines the scope of objects affected by the lifecycle rule. The options are: - Entire bucket: The rule applies to the entire bucket.
- Specify prefix: The rule applies to objects with the specified prefix. The prefix cannot include the bucket name. For example, if you want to apply the rule only to objects starting with the prefix prefix, select Specify prefix and set Prefix to prefix. Follow these guidelines when specifying a prefix:
- Prefixes can contain Chinese characters, letters, numbers, and common symbols.
- Length must be between 1 and 1,024 characters.
- Prefixes cannot start with a forward slash (/) or backslash (\). Consecutive forward slashes (/) are not allowed.
- .. cannot be used as a directory name.
- Regular expressions are not supported for prefix matching.
|
| TOS allows you to configure lifecycle rules for objects with specific tags, supporting up to ten tags. For more information, see Managing object tags. warning - For a lifecycle rule to take effect, an object must match both the tag key and value specified in the rule.
- Tag matching rules do not apply to multipart uploads.
|
| Enabling this option will prevent the lifecycle rule from applying to objects with the specified prefix and tag. Follow these guidelines when specifying a prefix or tag: - The total length of a prefix cannot exceed 1,023 characters.
- The valid characters for a tag include uppercase and lowercase letters, numbers, spaces, and symbols (: + - = ._ : /).
warning - After enabling Not, you will no longer be able to delete incomplete multipart uploads using this lifecycle rule.
- You can only add one Not configuration to a lifecycle rule.
- The Not prefix must start with the prefix provided in the Impact Scope section. For example, if the prefix provided in the Impact Scope section is a/, then the Not prefix must be a/xxx.
- The Not tag key must differ from those defined in the Tag section. For example, if the tag "key1":"value1" is provided in the Tag section, then you cannot specify the tag as "key1":"value1" or "key1":"value2" in the Not section.
|
| Specifies the size range of objects to which the lifecycle rule applies. Valid range: [1 B, 5 TiB]. The options are: - Specify the minimum file: The smallest size of an object to which the rule applies.
- Specify the maximum file: The largest size of an object to which the rule applies.
If both Specify the minimum file and Specify the maximum file are selected, the lifecycle rule only applies to objects whose sizes fall within this range. warning - If both are configured, the maximum size must exceed the minimum size.
- The rule will apply to all objects regardless of size if the file size is not specified, as long as other policy conditions are met.
- File size constraints do not apply to part expiration policies.
- A minimum charge applies to objects in Infrequent Access Storage, Flashback Archive, Archive, Cold Archive, and Deep Cold Archive based on file size. Objects smaller than 64 KiB are charged as if they were 64 KiB. To optimize storage costs, we recommend transitioning only objects larger than 64 KiB.
|
| Select Last modified time. tip TOS only retains the time when an object was last modified (last modified time). If you do not update the object's metadata or overwrite the object, the last modified time will remain the same as the creation time. For more information, see Which operations update an object's last modified time?. |
Latest file version expiration policy | Sets the expiration policy for latest object versions. This policy is turned on by default. The options are: - Specify days (relative time): Any in-scope objects that have not been modified within the preset number of days will either be transitioned to a specified storage type or deleted.
- Specify date (absolute time): After the specified date is reached, TOS automatically deletes or transitions objects whose last modified time is earlier than the specified date. Objects whose last modified time is equal to or later than the specified date will remain unaffected.
warning - If versioning is enabled for your objects, this rule applies to the latest versions. To clear historical versions, enable File history version expiration policy.
- If you select multiple expiration policies, make sure the time interval between any two policies is greater than or equal to the minimum storage duration for each respective storage type. Otherwise, early deletion charges may apply. The minimum storage durations are as follows:
- Infrequent Access Storage: 30 days
- Flashback Archive: 90 days
- Deep Cold Archive: 180 days
- For example, if the number of days after which in-scope objects will automatically transition to Flashback Archive is set to 90, the transition to Archive must occur after at least 180 days to avoid early deletion charges.
|
File history version expiration policy | If versioning is enabled for your bucket, you can activate the historical version expiration policy. This policy is turned off by default. The options are: - Specify days (relative time): Any in-scope objects that have not been modified within the preset number of days will either be transitioned to a specified storage type or deleted.
- Specify date (absolute time): After the specified date is reached, TOS automatically deletes or transitions objects whose last modified time is earlier than the specified date. Objects whose last modified time is equal to or later than the specified date will remain unaffected.
warning If you select multiple expiration policies, make sure the time interval between any two policies is greater than or equal to the minimum storage duration for each respective storage type. Otherwise, early deletion charges may apply. The minimum storage durations are as follows: - Infrequent Access Storage: 30 days
- Flashback Archive: 90 days
- Deep Cold Archive: 180 days
For example, if the number of days after which in-scope objects will automatically transition to Flashback Archive is set to 90, the transition to Archive must occur after at least 180 days to avoid early deletion charges. |
| This policy is turned off by default. Once enabled, you can set an expiration period in days. Any uploaded but unmerged parts will be automatically deleted after the expiration period elapses. |