Interface CfnLifecyclePolicy.FilterProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.FilterProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static interface CfnLifecyclePolicy.FilterProperty
extends software.amazon.jsii.JsiiSerializable
Defines filters that the lifecycle policy uses to determine impacted resource.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.imagebuilder.*; FilterProperty filterProperty = FilterProperty.builder() .type("type") .value(123) // the properties below are optional .retainAtLeast(123) .unit("unit") .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLifecyclePolicy.FilterProperty
static final class
An implementation forCfnLifecyclePolicy.FilterProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Number
For age-based filters, this is the number of resources to keep on hand after the lifecycleDELETE
action is applied.getType()
Filter resources based on eitherage
orcount
.default String
getUnit()
Defines the unit of time that the lifecycle policy uses to determine impacted resources.getValue()
The number of units for the time period or for the count.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
Filter resources based on eitherage
orcount
.- See Also:
-
getValue
The number of units for the time period or for the count.For example, a value of
6
might refer to six months or six AMIs.For count-based filters, this value represents the minimum number of resources to keep on hand. If you have fewer resources than this number, the resource is excluded from lifecycle actions.
- See Also:
-
getRetainAtLeast
For age-based filters, this is the number of resources to keep on hand after the lifecycleDELETE
action is applied.Impacted resources are only deleted if you have more than this number of resources. If you have fewer resources than this number, the impacted resource is not deleted.
- See Also:
-
getUnit
Defines the unit of time that the lifecycle policy uses to determine impacted resources.This is required for age-based rules.
- See Also:
-
builder
-