LifecyclePolicyRule class
A lifecycle policy rule that determine which images in a repository should be expired.
Constructors
-
LifecyclePolicyRule({Input<
String?> ? description, Input<double?> ? maximumAgeLimit, Input<double?> ? maximumNumberOfImages, Input<List< ? tagPrefixList, required Input<String> ?>LifecycleTagStatus> tagStatus}) -
Creates a new LifecyclePolicyRule.
descriptionDescribes the purpose of a rule within a lifecycle policy.maximumAgeLimitThe maximum age limit (in days) for your images. EithermaximumNumberOfImagesormaximumAgeLimitmust be provided.maximumNumberOfImagesThe maximum number of images that you want to retain in your repository. EithermaximumNumberOfImagesormaximumAgeLimitmust be provided.tagPrefixListA 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.tagStatusDetermines 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.const -
LifecyclePolicyRule.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
description
→ Input<
String?> ? -
Describes the purpose of a rule within a lifecycle policy.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
maximumAgeLimit
→ Input<
double?> ? -
The maximum age limit (in days) for your images. Either maximumNumberOfImages or maximumAgeLimit must be provided.
final
-
maximumNumberOfImages
→ Input<
double?> ? -
The maximum number of images that you want to retain in your repository. Either maximumNumberOfImages or maximumAgeLimit must be provided.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tagPrefixList
→ Input<
List< ?String> ?> -
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.
final
-
tagStatus
→ Input<
LifecycleTagStatus> -
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.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited