Show / Hide Table of Contents

Class CfnLifecyclePolicyPropsMixin.FilterProperty

Defines filters that the lifecycle policy uses to determine impacted resource.

Inheritance
object
CfnLifecyclePolicyPropsMixin.FilterProperty
Implements
CfnLifecyclePolicyPropsMixin.IFilterProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-filter.html

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 DELETE action is applied.

Type

Filter resources based on either age or count .

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-filter.html

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

double?

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-filter.html#cfn-imagebuilder-lifecyclepolicy-filter-retainatleast

Type

Filter resources based on either age or count .

public string? Type { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-filter.html#cfn-imagebuilder-lifecyclepolicy-filter-type

Unit

Defines the unit of time that the lifecycle policy uses to determine impacted resources.

public string? Unit { get; set; }
Property Value

string

Remarks

This is required for age-based rules.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-filter.html#cfn-imagebuilder-lifecyclepolicy-filter-unit

Value

The number of units for the time period or for the count.

public double? Value { get; set; }
Property Value

double?

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-lifecyclepolicy-filter.html#cfn-imagebuilder-lifecyclepolicy-filter-value

Implements

CfnLifecyclePolicyPropsMixin.IFilterProperty
Back to top Generated by DocFX