Package com.pulumi.aws.ecr.inputs
Class GetLifecyclePolicyDocumentRuleSelection.Builder
- java.lang.Object
-
- com.pulumi.aws.ecr.inputs.GetLifecyclePolicyDocumentRuleSelection.Builder
-
- Enclosing class:
- GetLifecyclePolicyDocumentRuleSelection
public static final class GetLifecyclePolicyDocumentRuleSelection.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(GetLifecyclePolicyDocumentRuleSelection defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetLifecyclePolicyDocumentRuleSelection defaults)
-
-
Method Detail
-
countNumber
public GetLifecyclePolicyDocumentRuleSelection.Builder countNumber(java.lang.Integer countNumber)
- Parameters:
countNumber- Specify a count number. If the `countType` used is `imageCountMoreThan`, then the value is the maximum number of images that you want to retain in your repository. If the `countType` used is `sinceImagePushed`, then the value is the maximum age limit for your images. If the `countType` used is `sinceImagePulled`, then the value is the maximum number of days since the image was last pulled. If the `countType` used is `sinceImageTransitioned`, then the value is the maximum number of days since the image was archived.- Returns:
- builder
-
countType
public GetLifecyclePolicyDocumentRuleSelection.Builder countType(java.lang.String countType)
- Parameters:
countType- Specify a count type to apply to the images. If `countType` is set to `imageCountMoreThan`, you also specify `countNumber` to create a rule that sets a limit on the number of images that exist in your repository. If `countType` is set to `sinceImagePushed`, `sinceImagePulled`, or `sinceImageTransitioned`, you also specify `countUnit` and `countNumber` to specify a time limit on the images that exist in your repository.- Returns:
- builder
-
countUnit
public GetLifecyclePolicyDocumentRuleSelection.Builder countUnit(@Nullable java.lang.String countUnit)
- Parameters:
countUnit- Specify a count unit of `days` to indicate that as the unit of time, in addition to `countNumber`, which is the number of days.- Returns:
- builder
-
storageClass
public GetLifecyclePolicyDocumentRuleSelection.Builder storageClass(@Nullable java.lang.String storageClass)
- Parameters:
storageClass- The rule will only select images of this storage class. When using a `countType` of `imageCountMoreThan`, `sinceImagePushed`, or `sinceImagePulled`, the only supported value is `standard`. When using a `countType` of `sinceImageTransitioned`, this is required, and the only supported value is `archive`. If you omit this, the value of `standard` will be used.- Returns:
- builder
-
tagPatternLists
public GetLifecyclePolicyDocumentRuleSelection.Builder tagPatternLists(@Nullable java.util.List<java.lang.String> tagPatternLists)
- Parameters:
tagPatternLists- You must specify a comma-separated list of image tag patterns that may contain wildcards (\*) 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 pattern list `["prod\*"]` to specify all of them. If you specify multiple tags, only the images with all specified tags are selected. There is a maximum limit of four wildcards (\*) per string. For example, `["*test*1*2*3", "test*1*2*3*"]` is valid but `["test*1*2*3*4*5*6"]` is invalid.- Returns:
- builder
-
tagPatternLists
public GetLifecyclePolicyDocumentRuleSelection.Builder tagPatternLists(java.lang.String... tagPatternLists)
- Parameters:
tagPatternLists- You must specify a comma-separated list of image tag patterns that may contain wildcards (\*) 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 pattern list `["prod\*"]` to specify all of them. If you specify multiple tags, only the images with all specified tags are selected. There is a maximum limit of four wildcards (\*) per string. For example, `["*test*1*2*3", "test*1*2*3*"]` is valid but `["test*1*2*3*4*5*6"]` is invalid.- Returns:
- builder
-
tagPrefixLists
public GetLifecyclePolicyDocumentRuleSelection.Builder tagPrefixLists(@Nullable java.util.List<java.lang.String> tagPrefixLists)
- Parameters:
tagPrefixLists- 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.- Returns:
- builder
-
tagPrefixLists
public GetLifecyclePolicyDocumentRuleSelection.Builder tagPrefixLists(java.lang.String... tagPrefixLists)
- Parameters:
tagPrefixLists- 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.- Returns:
- builder
-
tagStatus
public GetLifecyclePolicyDocumentRuleSelection.Builder tagStatus(java.lang.String tagStatus)
- Parameters:
tagStatus- 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 evaluated against them. If you specify `tagged`, then you must also specify a `tagPrefixList` value or a `tagPatternList` value. If you specify `untagged`, then you must omit both `tagPrefixList` and `tagPatternList`.- Returns:
- builder
-
build
public GetLifecyclePolicyDocumentRuleSelection build()
-
-