LifecyclePolicy class
Simplified lifecycle policy model consisting of one or more rules that determine which images in a repository should be expired. See https://docs.aws.amazon.com/AmazonECR/latest/userguide/lifecycle_policy_examples.html for more details.
Constructors
-
LifecyclePolicy({Input<
List< ? rules, Input<LifecyclePolicyRule> ?>bool?> ? skip}) -
Creates a new LifecyclePolicy.
rulesSpecifies the rules to determine how images should be retired from this repository. Rules are ordered from lowest priority to highest. If there is a rule with aselectionvalue ofany, then it will have the highest priority.skipSkips creation of the policy if set totrue.const -
LifecyclePolicy.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
rules
→ Input<
List< ?LifecyclePolicyRule> ?> -
Specifies the rules to determine how images should be retired from this repository. Rules are ordered from lowest priority to highest. If there is a rule with a
selectionvalue ofany, then it will have the highest priority.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
skip
→ Input<
bool?> ? -
Skips creation of the policy if set to
true.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