Class LifecycleRule.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecr.LifecycleRule.Jsii$Proxy
All Implemented Interfaces:
LifecycleRule, software.amazon.jsii.JsiiSerializable
Enclosing interface:
LifecycleRule

@Stability(Stable) @Internal public static final class LifecycleRule.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LifecycleRule
An implementation for LifecycleRule
  • 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

      protected Jsii$Proxy(LifecycleRule.Builder builder)
      Constructor that initializes the object based on literal property values passed by the LifecycleRule.Builder.
  • Method Details

    • getDescription

      public final String getDescription()
      Description copied from interface: LifecycleRule
      Describes the purpose of the rule.

      Default: No description

      Specified by:
      getDescription in interface LifecycleRule
    • getMaxImageAge

      public final Duration getMaxImageAge()
      Description copied from interface: LifecycleRule
      The maximum age of images to retain. The value must represent a number of days.

      Specify exactly one of maxImageCount and maxImageAge.

      Specified by:
      getMaxImageAge in interface LifecycleRule
    • getMaxImageCount

      public final Number getMaxImageCount()
      Description copied from interface: LifecycleRule
      The maximum number of images to retain.

      Specify exactly one of maxImageCount and maxImageAge.

      Specified by:
      getMaxImageCount in interface LifecycleRule
    • getRulePriority

      public final Number getRulePriority()
      Description copied from interface: LifecycleRule
      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.

      Default: Automatically assigned

      Specified by:
      getRulePriority in interface LifecycleRule
    • getTagPatternList

      public final List<String> getTagPatternList()
      Description copied from interface: LifecycleRule
      Select 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:
      getTagPatternList in interface LifecycleRule
    • getTagPrefixList

      public final List<String> getTagPrefixList()
      Description copied from interface: LifecycleRule
      Select 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:
      getTagPrefixList in interface LifecycleRule
    • getTagStatus

      public final TagStatus getTagStatus()
      Description copied from interface: LifecycleRule
      Select 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:
      getTagStatus in interface LifecycleRule
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object