@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.142Z") @Stability(value=Experimental) public interface LifecycleRule extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
LifecycleRule.Builder
A builder for
LifecycleRule |
static class |
LifecycleRule.Jsii$Proxy
An implementation for
LifecycleRule |
| Modifier and Type | Method and Description |
|---|---|
static LifecycleRule.Builder |
builder() |
default String |
getDescription()
(experimental) Describes the purpose of the rule.
|
default Duration |
getMaxImageAge()
(experimental) The maximum age of images to retain.
|
default Number |
getMaxImageCount()
(experimental) The maximum number of images to retain.
|
default Number |
getRulePriority()
(experimental) Controls the order in which rules are evaluated (low to high).
|
default List<String> |
getTagPrefixList()
(experimental) Select images that have ALL the given prefixes in their tag.
|
default TagStatus |
getTagStatus()
(experimental) Select images based on tags.
|
@Stability(value=Experimental) @Nullable default String getDescription()
Default: No description
@Stability(value=Experimental) @Nullable default Duration getMaxImageAge()
Specify exactly one of maxImageCount and maxImageAge.
@Stability(value=Experimental) @Nullable default Number getMaxImageCount()
Specify exactly one of maxImageCount and maxImageAge.
@Stability(value=Experimental) @Nullable default Number getRulePriority()
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.
Default: Automatically assigned
@Stability(value=Experimental) @Nullable default List<String> getTagPrefixList()
Only if tagStatus == TagStatus.Tagged
@Stability(value=Experimental) @Nullable default TagStatus getTagStatus()
Only one rule is allowed to select untagged images, and it must have the highest rulePriority.
Default: TagStatus.Tagged if tagPrefixList is given, TagStatus.Any otherwise
@Stability(value=Experimental) static LifecycleRule.Builder builder()
LifecycleRule.Builder of LifecycleRuleCopyright © 2021. All rights reserved.