An ECR life cycle rule.
|description?||Describes the purpose of the rule.|
|max||The maximum age of images to retain. The value must represent a number of days.|
|max||The maximum number of images to retain.|
|rule||Controls the order in which rules are evaluated (low to high).|
|tag||Select images that have ALL the given prefixes in their tag.|
|tag||Select images based on tags.|
(optional, default: No description)
Describes the purpose of the rule.
The maximum age of images to retain. The value must represent a number of days.
Specify exactly one of maxImageCount and maxImageAge.
The maximum number of images to retain.
Specify exactly one of maxImageCount and maxImageAgeDays.
(optional, default: Automatically assigned)
Controls the order in which rules are evaluated (low to high).
All rules must have a unique priority, where lower numbers have higher precedence. The first rule that matches is applied to an image.
There can only be one rule with a tagStatus of Any, and it must have the highest rulePriority.
All rules without a specified priority will have incrementing priorities automatically assigned to them, higher than any rules that DO have priorities.
Select images that have ALL the given prefixes in their tag.
Only if tagStatus == TagStatus.Tagged
(optional, default: TagStatus.Tagged if tagPrefixList is given, TagStatus.Any otherwise)
Select images based on tags.
Only one rule is allowed to select untagged images, and it must have the highest rulePriority.