public static final class CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Builder
extends java.lang.Object
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty |
build()
Builds the configured instance.
|
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Builder |
interval(java.lang.Number interval)
Sets the value of
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.getInterval() |
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Builder |
intervalUnit(java.lang.String intervalUnit)
|
public CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Builder interval(java.lang.Number interval)
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.getInterval()
interval
- The period after which to deprecate the cross-Region AMI copies. This parameter is required.
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.this
public CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty.Builder intervalUnit(java.lang.String intervalUnit)
intervalUnit
- The unit of time in which to measure the *Interval* . This parameter is required.this
public CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty build()
CfnLifecyclePolicy.CrossRegionCopyDeprecateRuleProperty
java.lang.NullPointerException
- if any required attribute was not provided