Class LifecycleRule.Jsii$Proxy
- All Implemented Interfaces:
LifecycleRule,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
LifecycleRule
LifecycleRule-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ecr.LifecycleRule
LifecycleRule.Builder, LifecycleRule.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(LifecycleRule.Builder builder) Constructor that initializes the object based on literal property values passed by theLifecycleRule.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringDescribes the purpose of the rule.final DurationThe maximum age of images to retain.final NumberThe maximum number of images to retain.final NumberControls the order in which rules are evaluated (low to high).Select images that have ALL the given patterns in their tag.Select images that have ALL the given prefixes in their tag.final TagStatusSelect images based on tags.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theLifecycleRule.Builder.
-
-
Method Details
-
getDescription
Description copied from interface:LifecycleRuleDescribes the purpose of the rule.Default: No description
- Specified by:
getDescriptionin interfaceLifecycleRule
-
getMaxImageAge
Description copied from interface:LifecycleRuleThe maximum age of images to retain. The value must represent a number of days.Specify exactly one of maxImageCount and maxImageAge.
- Specified by:
getMaxImageAgein interfaceLifecycleRule
-
getMaxImageCount
Description copied from interface:LifecycleRuleThe maximum number of images to retain.Specify exactly one of maxImageCount and maxImageAge.
- Specified by:
getMaxImageCountin interfaceLifecycleRule
-
getRulePriority
Description copied from interface:LifecycleRuleControls 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.
Default: Automatically assigned
- Specified by:
getRulePriorityin interfaceLifecycleRule
-
getTagPatternList
Description copied from interface:LifecycleRuleSelect images that have ALL the given patterns in their tag.There is a maximum limit of four wildcards () per string. For example, ["test123", "test123*"] is valid but ["test123456"] is invalid.
Both tagPrefixList and tagPatternList cannot be specified together in a rule.
Only if tagStatus == TagStatus.Tagged
- Specified by:
getTagPatternListin interfaceLifecycleRule
-
getTagPrefixList
Description copied from interface:LifecycleRuleSelect images that have ALL the given prefixes in their tag.Both tagPrefixList and tagPatternList cannot be specified together in a rule.
Only if tagStatus == TagStatus.Tagged
- Specified by:
getTagPrefixListin interfaceLifecycleRule
-
getTagStatus
Description copied from interface:LifecycleRuleSelect images based on tags.Only one rule is allowed to select untagged images, and it must have the highest rulePriority.
Default: TagStatus.Tagged if tagPrefixList or tagPatternList is given, TagStatus.Any otherwise
- Specified by:
getTagStatusin interfaceLifecycleRule
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-