GetLifecyclePolicyDocumentRuleSelection

data class GetLifecyclePolicyDocumentRuleSelection(val countNumber: Int, val countType: String, val countUnit: String? = null, val tagPatternLists: List<String>? = null, val tagPrefixLists: List<String>? = null, val tagStatus: String) : ConvertibleToJava<GetLifecyclePolicyDocumentRuleSelection>

Constructors

Link copied to clipboard
fun GetLifecyclePolicyDocumentRuleSelection(countNumber: Int, countType: String, countUnit: String? = null, tagPatternLists: List<String>? = null, tagPrefixLists: List<String>? = null, tagStatus: String)

Functions

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

Properties

Link copied to clipboard

Specify a count number. If the count_type used is imageCountMoreThan, then the value is the maximum number of images that you want to retain in your repository. If the count_type used is sinceImagePushed, then the value is the maximum age limit for your images.

Link copied to clipboard

Specify a count type to apply to the images. If count_type is set to imageCountMoreThan, you also specify count_number to create a rule that sets a limit on the number of images that exist in your repository. If count_type is set to sinceImagePushed, you also specify count_unit and count_number to specify a time limit on the images that exist in your repository.

Link copied to clipboard
val countUnit: String? = null

Specify a count unit of days to indicate that as the unit of time, in addition to count_number, which is the number of days.

Link copied to clipboard
Link copied to clipboard
val tagPrefixLists: List<String>? = null

You must specify a comma-separated list of image tag prefixes on which to take action with your lifecycle policy. For example, if your images are tagged as prod, prod1, prod2, and so on, you would use the tag prefix prod to specify all of them. If you specify multiple tags, only images with all specified tags are selected.

Link copied to clipboard

Determines whether the lifecycle policy rule that you are adding specifies a tag for an image. Acceptable options are tagged, untagged, or any. If you specify any, then all images have the rule applied to them. If you specify tagged, then you must also specify a tag_prefix_list value. If you specify untagged, then you must omit tag_prefix_list.