

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

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

檢查 Amazon Redshift 叢集是否擁有指定的維護設定。如果停用自動升級主要版本，則表示規則為「NON\$1COMPLIANT」。



**識別符：**REDSHIFT\$1CLUSTER\$1MAINTENANCESETTINGS\$1CHECK

**資源類型：**AWS::Redshift::Cluster

觸發類型： Configuration changes (組態變更)****

**AWS 區域：**墨西哥 （中部） AWS 區域以外的所有支援區域

**參數：**

allowVersionUpgrade類型：布林值預設：true  
允許版本升級已啟用。

preferredMaintenanceWindow (選用)類型：字串  
叢集的排程維護時段 (例如，Mon:09:30-Mon:10:00)。

automatedSnapshotRetentionPeriod (選用)類型：整數預設：1  
保留自動快照的天數。

## 主動評估
<a name="w2aac20c16c17b7e1283c19"></a>

 如需如何在主動模式下執行此規則的步驟，請參閱[使用 AWS Config 規則評估您的資源](./evaluating-your-resources.html#evaluating-your-resources-proactive)。若要讓此規則在主動模式中傳回「COMPLIANT」，[StartResourceEvaluation](https://docs.aws.amazon.com/config/latest/APIReference/API_StartResourceEvaluation.html) API 的資源組態結構描述必須包含下列輸入 (編碼為字串)：

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

\$1 如需這些輸入之有效值的詳細資訊，請參閱 AWS CloudFormation 《 使用者指南》中的 [AutomatedSnapshotRetentionPeriod](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-automatedsnapshotretentionperiod)、[PreferredMaintenanceWindow](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-preferredmaintenancewindow) 和 [AllowVersionUpgrade](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html#cfn-redshift-cluster-allowversionupgrade)。

 如需主動評估的詳細資訊，請參閱《[評估模式](./evaluate-config-rules.html)》。

## AWS CloudFormation 範本
<a name="w2aac20c16c17b7e1283c21"></a>

若要使用 AWS CloudFormation 範本建立 AWS Config 受管規則，請參閱 [使用 AWS CloudFormation 範本建立 AWS Config 受管規則](aws-config-managed-rules-cloudformation-templates.md)。