LifecyclePolicyPolicyDetailFilterArgs

data class LifecyclePolicyPolicyDetailFilterArgs(val retainAtLeast: Output<Int>? = null, val type: Output<String>, val unit: Output<String>? = null, val value: Output<Int>) : ConvertibleToJava<LifecyclePolicyPolicyDetailFilterArgs>

Constructors

Link copied to clipboard
constructor(retainAtLeast: Output<Int>? = null, type: Output<String>, unit: Output<String>? = null, value: Output<Int>)

Properties

Link copied to clipboard
val retainAtLeast: Output<Int>? = null

For age-based filters, this is the number of resources to keep on hand after the lifecycle DELETE 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.

Link copied to clipboard
val type: Output<String>

Filter resources based on either age or count. Valid values: AGE or COUNT.

Link copied to clipboard
val unit: Output<String>? = null

Defines the unit of time that the lifecycle policy uses to determine impacted resources. This is required for age-based rules. Valid values: DAYS, WEEKS, MONTHS or YEARS.

Link copied to clipboard
val value: Output<Int>

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. The following arguments are optional:

Functions

Link copied to clipboard
open override fun toJava(): LifecyclePolicyPolicyDetailFilterArgs