@Stability(value=Stable) @Internal public static final class LifecycleRule.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LifecycleRule
LifecycleRulesoftware.amazon.jsii.JsiiObject.InitializationModeLifecycleRule.Builder, LifecycleRule.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(LifecycleRule.Builder builder)
Constructor that initializes the object based on literal property values passed by the
LifecycleRule.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getDescription()
Describes the purpose of the rule.
|
Duration |
getMaxImageAge()
The maximum age of images to retain.
|
Number |
getMaxImageCount()
The maximum number of images to retain.
|
Number |
getRulePriority()
Controls the order in which rules are evaluated (low to high).
|
List<String> |
getTagPrefixList()
Select images that have ALL the given prefixes in their tag.
|
TagStatus |
getTagStatus()
Select images based on tags.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(LifecycleRule.Builder builder)
LifecycleRule.Builder.public final String getDescription()
LifecycleRuleDefault: No description
getDescription in interface LifecycleRulepublic final Duration getMaxImageAge()
LifecycleRuleSpecify exactly one of maxImageCount and maxImageAge.
getMaxImageAge in interface LifecycleRulepublic final Number getMaxImageCount()
LifecycleRuleSpecify exactly one of maxImageCount and maxImageAge.
getMaxImageCount in interface LifecycleRulepublic final Number getRulePriority()
LifecycleRuleAll 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
getRulePriority in interface LifecycleRulepublic final List<String> getTagPrefixList()
LifecycleRuleOnly if tagStatus == TagStatus.Tagged
getTagPrefixList in interface LifecycleRulepublic final TagStatus getTagStatus()
LifecycleRuleOnly 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
getTagStatus in interface LifecycleRule@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.