

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::SES::MailManagerArchive ArchiveRetention
<a name="aws-properties-ses-mailmanagerarchive-archiveretention"></a>

The retention policy for an email archive that specifies how long emails are kept before being automatically deleted. 

## Syntax
<a name="aws-properties-ses-mailmanagerarchive-archiveretention-syntax"></a>

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

### JSON
<a name="aws-properties-ses-mailmanagerarchive-archiveretention-syntax.json"></a>

```
{
  "[RetentionPeriod](#cfn-ses-mailmanagerarchive-archiveretention-retentionperiod)" : {{String}}
}
```

### YAML
<a name="aws-properties-ses-mailmanagerarchive-archiveretention-syntax.yaml"></a>

```
  [RetentionPeriod](#cfn-ses-mailmanagerarchive-archiveretention-retentionperiod): {{String}}
```

## Properties
<a name="aws-properties-ses-mailmanagerarchive-archiveretention-properties"></a>

`RetentionPeriod`  <a name="cfn-ses-mailmanagerarchive-archiveretention-retentionperiod"></a>
The enum value sets the period for retaining emails in an archive.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `THREE_MONTHS | SIX_MONTHS | NINE_MONTHS | ONE_YEAR | EIGHTEEN_MONTHS | TWO_YEARS | THIRTY_MONTHS | THREE_YEARS | FOUR_YEARS | FIVE_YEARS | SIX_YEARS | SEVEN_YEARS | EIGHT_YEARS | NINE_YEARS | TEN_YEARS | PERMANENT`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)