LifecyclePolicyRule constructor

const LifecyclePolicyRule({
  1. Input<String?>? description,
  2. Input<double?>? maximumAgeLimit,
  3. Input<double?>? maximumNumberOfImages,
  4. Input<List<String>?>? tagPrefixList,
  5. required Input<LifecycleTagStatus> tagStatus,
})

Creates a new LifecyclePolicyRule. description Describes the purpose of a rule within a lifecycle policy. maximumAgeLimit The maximum age limit (in days) for your images. Either maximumNumberOfImages or maximumAgeLimit must be provided. maximumNumberOfImages The maximum number of images that you want to retain in your repository. Either maximumNumberOfImages or maximumAgeLimit must be provided. tagPrefixList A list of image tag prefixes on which to take action with your lifecycle policy. Only used if you specified "tagStatus": "tagged". For example, if your images are tagged as prod, prod1, prod2, and so on, you would use the tag prefix prod to specify all of them. If you specify multiple tags, only the images with all specified tags are selected. tagStatus Determines whether the lifecycle policy rule that you are adding specifies a tag for an image. Acceptable options are tagged, untagged, or any. If you specify any, then all images have the rule evaluated against them. If you specify tagged, then you must also specify a tagPrefixList value. If you specify untagged, then you must omit tagPrefixList.

Implementation

const LifecyclePolicyRule({
  this.description,
  this.maximumAgeLimit,
  this.maximumNumberOfImages,
  this.tagPrefixList,
  required this.tagStatus,
});