Class LifecyclePolicyPolicyDetailFilterArgs.Builder

    • Method Detail

      • retainAtLeast

        public LifecyclePolicyPolicyDetailFilterArgs.Builder retainAtLeast​(@Nullable
                                                                           com.pulumi.core.Output<java.lang.Integer> retainAtLeast)
        Parameters:
        retainAtLeast - 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.
        Returns:
        builder
      • retainAtLeast

        public LifecyclePolicyPolicyDetailFilterArgs.Builder retainAtLeast​(java.lang.Integer retainAtLeast)
        Parameters:
        retainAtLeast - 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.
        Returns:
        builder
      • type

        public LifecyclePolicyPolicyDetailFilterArgs.Builder type​(com.pulumi.core.Output<java.lang.String> type)
        Parameters:
        type - Filter resources based on either age or count. Valid values: `AGE` or `COUNT`.
        Returns:
        builder
      • unit

        public LifecyclePolicyPolicyDetailFilterArgs.Builder unit​(@Nullable
                                                                  com.pulumi.core.Output<java.lang.String> unit)
        Parameters:
        unit - 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`.
        Returns:
        builder
      • unit

        public LifecyclePolicyPolicyDetailFilterArgs.Builder unit​(java.lang.String unit)
        Parameters:
        unit - 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`.
        Returns:
        builder
      • value

        public LifecyclePolicyPolicyDetailFilterArgs.Builder value​(com.pulumi.core.Output<java.lang.Integer> value)
        Parameters:
        value - 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:
        Returns:
        builder
      • value

        public LifecyclePolicyPolicyDetailFilterArgs.Builder value​(java.lang.Integer value)
        Parameters:
        value - 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:
        Returns:
        builder