ProjectContainerExpirationPolicyArgs

data class ProjectContainerExpirationPolicyArgs(val cadence: Output<String>? = null, val enabled: Output<Boolean>? = null, val keepN: Output<Int>? = null, val nameRegexDelete: Output<String>? = null, val nameRegexKeep: Output<String>? = null, val nextRunAt: Output<String>? = null, val olderThan: Output<String>? = null) : ConvertibleToJava<ProjectContainerExpirationPolicyArgs>

Constructors

Link copied to clipboard
constructor(cadence: Output<String>? = null, enabled: Output<Boolean>? = null, keepN: Output<Int>? = null, nameRegexDelete: Output<String>? = null, nameRegexKeep: Output<String>? = null, nextRunAt: Output<String>? = null, olderThan: Output<String>? = null)

Properties

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

The cadence of the policy. Valid values are: 1d, 7d, 14d, 1month, 3month.

Link copied to clipboard
val enabled: Output<Boolean>? = null

If true, the policy is enabled.

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

The number of images to keep.

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

The regular expression to match image names to delete. Note: the upstream API has some inconsistencies with the name_regex field here. It's basically unusable at the moment.

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

The regular expression to match image names to keep.

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

The next time the policy will run.

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

The number of days to keep images.

Functions

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