

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::AmplifyGen3::Environment DatabaseConfig

The database settings for an environment. An absent member uses the plan's default.

## Syntax
<a name="aws-properties-amplifygen3-environment-databaseconfig-syntax"></a>

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

### JSON
<a name="aws-properties-amplifygen3-environment-databaseconfig-syntax.json"></a>

```json
{
  "[BackupRetentionDays](#cfn-amplifygen3-environment-databaseconfig-backupretentiondays)" : {{Integer}},
  "[MaxBackendCapacityUnits](#cfn-amplifygen3-environment-databaseconfig-maxbackendcapacityunits)" : {{Integer}}
}
```

### YAML
<a name="aws-properties-amplifygen3-environment-databaseconfig-syntax.yaml"></a>

```yaml
  [BackupRetentionDays](#cfn-amplifygen3-environment-databaseconfig-backupretentiondays): {{Integer}}
  [MaxBackendCapacityUnits](#cfn-amplifygen3-environment-databaseconfig-maxbackendcapacityunits): {{Integer}}
```

## Properties
<a name="aws-properties-amplifygen3-environment-databaseconfig-properties"></a>

`BackupRetentionDays`  <a name="cfn-amplifygen3-environment-databaseconfig-backupretentiondays"></a>
The number of days that automated backups are kept. This is also how far back the environment's database can be restored.  
*Required*: No  
*Type*: Integer  
*Minimum*: `1`  
*Maximum*: `35`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`MaxBackendCapacityUnits`  <a name="cfn-amplifygen3-environment-databaseconfig-maxbackendcapacityunits"></a>
The maximum number of backend capacity units that the environment's database can scale to.  
*Required*: No  
*Type*: Integer  
*Minimum*: `1`  
*Maximum*: `256`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)