Class CfnLifecyclePolicyPropsMixin.FilterProperty
Defines filters that the lifecycle policy uses to determine impacted resource.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnLifecyclePolicyPropsMixin.FilterProperty : CfnLifecyclePolicyPropsMixin.IFilterProperty
Syntax (vb)
Public Class CfnLifecyclePolicyPropsMixin.FilterProperty Implements CfnLifecyclePolicyPropsMixin.IFilterProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins;
var filterProperty = new FilterProperty {
RetainAtLeast = 123,
Type = "type",
Unit = "unit",
Value = 123
};
Synopsis
Constructors
| FilterProperty() | Defines filters that the lifecycle policy uses to determine impacted resource. |
Properties
| RetainAtLeast | For age-based filters, this is the number of resources to keep on hand after the lifecycle |
| Type | Filter resources based on either |
| Unit | Defines the unit of time that the lifecycle policy uses to determine impacted resources. |
| Value | The number of units for the time period or for the count. |
Constructors
FilterProperty()
Defines filters that the lifecycle policy uses to determine impacted resource.
public FilterProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ImageBuilder.Mixins;
var filterProperty = new FilterProperty {
RetainAtLeast = 123,
Type = "type",
Unit = "unit",
Value = 123
};
Properties
RetainAtLeast
For age-based filters, this is the number of resources to keep on hand after the lifecycle DELETE action is applied.
public double? RetainAtLeast { get; set; }
Property Value
Remarks
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.
Type
Filter resources based on either age or count .
public string? Type { get; set; }
Property Value
Remarks
Unit
Defines the unit of time that the lifecycle policy uses to determine impacted resources.
public string? Unit { get; set; }
Property Value
Remarks
This is required for age-based rules.
Value
The number of units for the time period or for the count.
public double? Value { get; set; }
Property Value
Remarks
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.