

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# redshift-cluster-maintenancesettings-check
<a name="redshift-cluster-maintenancesettings-check"></a>

检查 Amazon Redshift 集群是否具有指定的维护设置。如果禁用自动升级到主要版本，则此规则为 NON\_COMPLIANT。



**标识符：**REDSHIFT\_CLUSTER\_MAINTENANCESETTINGS\_CHECK

**资源类型::** AWS::Redshift: 集群

**触发器类型：** 配置更改

**AWS 区域：**除墨西哥（中部） AWS 区域之外的所有支持区域

**参数：**

允许 VersionUpgrade类型：布尔值默认：True  
允许版本升级已启用。

首选MaintenanceWindow （可选）类型：字符串  
集群的计划维护时段（例如， Mon:09:30-Mon:10:00）。

自动SnapshotRetentionPeriod （可选）类型：int默认：1  
自动快照要被保留的天数。

## 主动评估
<a name="w2aac20c16c17b7e1295c19"></a>

 有关如何在主动模式下运行此规则的步骤，请参阅[使用 AWS Config 规则评估您的资源](./evaluating-your-resources.html#evaluating-your-resources-proactive)。为了使此规则在主动模式下返回合规，[StartResourceEvaluation](https://docs.aws.amazon.com/config/latest/APIReference/API_StartResourceEvaluation.html)API 的资源配置架构需要包含以下以字符串形式编码的输入：

```
"ResourceConfiguration":
...
{
    "AutomatedSnapshotRetentionPeriod": {{Integer}}*,
    "PreferredMaintenanceWindow": {{String}}*,
    "AllowVersionUpgrade": {{BOOLEAN}}*
} 
...
```

\* 有关这些输入有效值的更多信息，请参阅《 AWS CloudFormation 用户指南》[AllowVersionUpgrade](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-allowversionupgrade)中的[AutomatedSnapshotRetentionPeriod[PreferredMaintenanceWindow](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-preferredmaintenancewindow)](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-automatedsnapshotretentionperiod)、和。

 有关主动评估的更多信息，请参阅[评估模式](./evaluate-config-rules.html)。

## AWS CloudFormation 模板
<a name="w2aac20c16c17b7e1295c21"></a>

要使用 AWS CloudFormation 模板创建 AWS Config 托管规则，请参阅[使用 AWS CloudFormation 模板创建 AWS Config 托管规则](aws-config-managed-rules-cloudformation-templates.md)。