

This is the new *Amazon CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [Amazon CloudFormation User Guide](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::DLM::LifecyclePolicy CrossRegionCopyRetainRule
<a name="aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule"></a>

Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies. After the retention period expires, the cross-Region copy is deleted.

## Syntax
<a name="aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule-syntax"></a>

To declare this entity in your Amazon CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule-syntax.json"></a>

```
{
  "[Interval](#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-interval)" : {{Integer}},
  "[IntervalUnit](#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-intervalunit)" : {{String}}
}
```

### YAML
<a name="aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule-syntax.yaml"></a>

```
  [Interval](#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-interval): {{Integer}}
  [IntervalUnit](#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-intervalunit): {{String}}
```

## Properties
<a name="aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule-properties"></a>

`Interval`  <a name="cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-interval"></a>
The amount of time to retain a cross-Region snapshot or AMI copy. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.  
*Required*: Yes  
*Type*: Integer  
*Minimum*: `1`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`IntervalUnit`  <a name="cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-intervalunit"></a>
The unit of time for time-based retention. For example, to retain a cross-Region copy for 3 months, specify `Interval=3` and `IntervalUnit=MONTHS`.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `DAYS | WEEKS | MONTHS | YEARS`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)