Package com.pulumi.aws.ecr.inputs
Class GetLifecyclePolicyDocumentRuleSelectionArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.ecr.inputs.GetLifecyclePolicyDocumentRuleSelectionArgs.Builder
-
- Enclosing class:
- GetLifecyclePolicyDocumentRuleSelectionArgs
public static final class GetLifecyclePolicyDocumentRuleSelectionArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(GetLifecyclePolicyDocumentRuleSelectionArgs defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(GetLifecyclePolicyDocumentRuleSelectionArgs defaults)
-
-
Method Detail
-
countNumber
public GetLifecyclePolicyDocumentRuleSelectionArgs.Builder countNumber(com.pulumi.core.Output<java.lang.Integer> countNumber)
- Parameters:
countNumber
- 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.- Returns:
- builder
-
countNumber
public GetLifecyclePolicyDocumentRuleSelectionArgs.Builder countNumber(java.lang.Integer countNumber)
- Parameters:
countNumber
- 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.- Returns:
- builder
-
countType
public GetLifecyclePolicyDocumentRuleSelectionArgs.Builder countType(com.pulumi.core.Output<java.lang.String> countType)
- Parameters:
countType
- 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.- Returns:
- builder
-
countType
public GetLifecyclePolicyDocumentRuleSelectionArgs.Builder countType(java.lang.String countType)
- Parameters:
countType
- 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.- Returns:
- builder
-
countUnit
public GetLifecyclePolicyDocumentRuleSelectionArgs.Builder countUnit(@Nullable com.pulumi.core.Output<java.lang.String> countUnit)
- Parameters:
countUnit
- 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.- Returns:
- builder
-
countUnit
public GetLifecyclePolicyDocumentRuleSelectionArgs.Builder countUnit(java.lang.String countUnit)
- Parameters:
countUnit
- 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.- Returns:
- builder
-
tagPatternLists
public GetLifecyclePolicyDocumentRuleSelectionArgs.Builder tagPatternLists(@Nullable com.pulumi.core.Output<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 GetLifecyclePolicyDocumentRuleSelectionArgs.Builder tagPatternLists(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 GetLifecyclePolicyDocumentRuleSelectionArgs.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 GetLifecyclePolicyDocumentRuleSelectionArgs.Builder tagPrefixLists(@Nullable com.pulumi.core.Output<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 GetLifecyclePolicyDocumentRuleSelectionArgs.Builder tagPrefixLists(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 GetLifecyclePolicyDocumentRuleSelectionArgs.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 GetLifecyclePolicyDocumentRuleSelectionArgs.Builder tagStatus(com.pulumi.core.Output<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 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`.- Returns:
- builder
-
tagStatus
public GetLifecyclePolicyDocumentRuleSelectionArgs.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 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`.- Returns:
- builder
-
build
public GetLifecyclePolicyDocumentRuleSelectionArgs build()
-
-