@Stability(value=Stable) public static final class LifecycleRule.Builder extends Object implements software.amazon.jsii.Builder<LifecycleRule>
LifecycleRule| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LifecycleRule |
build()
Builds the configured instance.
|
LifecycleRule.Builder |
description(String description)
Sets the value of
LifecycleRule.getDescription() |
LifecycleRule.Builder |
maxImageAge(Duration maxImageAge)
Sets the value of
LifecycleRule.getMaxImageAge() |
LifecycleRule.Builder |
maxImageCount(Number maxImageCount)
Sets the value of
LifecycleRule.getMaxImageCount() |
LifecycleRule.Builder |
rulePriority(Number rulePriority)
Sets the value of
LifecycleRule.getRulePriority() |
LifecycleRule.Builder |
tagPrefixList(List<String> tagPrefixList)
Sets the value of
LifecycleRule.getTagPrefixList() |
LifecycleRule.Builder |
tagStatus(TagStatus tagStatus)
Sets the value of
LifecycleRule.getTagStatus() |
@Stability(value=Stable) public LifecycleRule.Builder description(String description)
LifecycleRule.getDescription()description - Describes the purpose of the rule.this@Stability(value=Stable) public LifecycleRule.Builder maxImageAge(Duration maxImageAge)
LifecycleRule.getMaxImageAge()maxImageAge - The maximum age of images to retain. The value must represent a number of days.
Specify exactly one of maxImageCount and maxImageAge.this@Stability(value=Stable) public LifecycleRule.Builder maxImageCount(Number maxImageCount)
LifecycleRule.getMaxImageCount()maxImageCount - The maximum number of images to retain.
Specify exactly one of maxImageCount and maxImageAge.this@Stability(value=Stable) public LifecycleRule.Builder rulePriority(Number rulePriority)
LifecycleRule.getRulePriority()rulePriority - 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.
this@Stability(value=Stable) public LifecycleRule.Builder tagPrefixList(List<String> tagPrefixList)
LifecycleRule.getTagPrefixList()tagPrefixList - Select images that have ALL the given prefixes in their tag.
Only if tagStatus == TagStatus.Taggedthis@Stability(value=Stable) public LifecycleRule.Builder tagStatus(TagStatus tagStatus)
LifecycleRule.getTagStatus()tagStatus - Select images based on tags.
Only one rule is allowed to select untagged images, and it must
have the highest rulePriority.this@Stability(value=Stable) public LifecycleRule build()
build in interface software.amazon.jsii.Builder<LifecycleRule>LifecycleRuleNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.