Class LifecyclePolicySelectionArgs


  • public final class LifecyclePolicySelectionArgs
    extends com.pulumi.resources.ResourceArgs
    Represents selection criteria for an ECR lifecycle policy rule.
    • Method Detail

      • countNumber

        public com.pulumi.core.Output<java.lang.Integer> countNumber()
        Returns:
        The count number to use with the count type.
      • countType

        public com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,​LifecyclePolicyCountType>> countType()
        Returns:
        The type of count to perform. Either 'imageCountMoreThan', 'sinceImagePushed', 'sinceImagePulled', or 'sinceImageTransitioned'.
      • countUnit

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> countUnit()
        Returns:
        The unit of time for count types based on image age. Required when 'countType' is 'sinceImagePushed', 'sinceImagePulled', or 'sinceImageTransitioned'. The only supported value is 'days'.
      • storageClass

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> storageClass()
        Returns:
        The image storage class to select. Required when 'countType' is 'sinceImageTransitioned' (must be 'archive'). For 'imageCountMoreThan', 'sinceImagePushed', and 'sinceImagePulled', the only supported value is 'standard'. If omitted, ECR uses 'standard'.
      • tagPrefixList

        public java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>> tagPrefixList()
        Returns:
        A list of image tag prefixes on which to take action.
      • tagStatus

        public com.pulumi.core.Output<com.pulumi.core.Either<java.lang.String,​LifecyclePolicyTagStatus>> tagStatus()
        Returns:
        The tag status of the image. Either 'tagged', 'untagged', or 'any'.