Interface CrossRegionCopyDeprecateRule.Builder

    • Method Detail

      • interval

        CrossRegionCopyDeprecateRule.Builder interval​(Integer interval)

        The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.

        Parameters:
        interval - The period after which to deprecate the cross-Region AMI copies. The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • intervalUnit

        CrossRegionCopyDeprecateRule.Builder intervalUnit​(String intervalUnit)

        The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3 and IntervalUnit=MONTHS.

        Parameters:
        intervalUnit - The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3 and IntervalUnit=MONTHS.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RetentionIntervalUnitValues, RetentionIntervalUnitValues
      • intervalUnit

        CrossRegionCopyDeprecateRule.Builder intervalUnit​(RetentionIntervalUnitValues intervalUnit)

        The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3 and IntervalUnit=MONTHS.

        Parameters:
        intervalUnit - The unit of time in which to measure the Interval. For example, to deprecate a cross-Region AMI copy after 3 months, specify Interval=3 and IntervalUnit=MONTHS.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        RetentionIntervalUnitValues, RetentionIntervalUnitValues