

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

# `AWSConfigRemediation-EnablePerformanceInsightsOnRDSInstance`
<a name="automation-aws-enable-performance-insights-rds"></a>

 **Description** 

 `AWSConfigRemediation-EnablePerformanceInsightsOnRDSInstance` Runbook 會在您指定的 Amazon RDS 資料庫執行個體上啟用績效詳情。

 [執行此自動化 （主控台）](https://console.aws.amazon.com/systems-manager/automation/execute/AWSConfigRemediation-EnablePerformanceInsightsOnRDSInstance) 

**文件類型**

 自動化

**擁有者**

Amazon

**平台**

資料庫

**參數**
+ AutomationAssumeRole

  類型：字串

  描述：（必要） (IAM) 角色的 AWS Identity and Access Management Amazon Resource Name (ARN)，允許 Systems Manager Automation 代表您執行動作。
+ DbiResourceId

  類型：字串

  描述：（必要） 您要啟用績效詳情之資料庫執行個體的資源識別符。
+ PerformanceInsightsKMSKeyId

  類型：字串

   預設：`alias/aws/rds`

   描述：（選用） 您希望 Performance Insights 用來加密所有潛在敏感資料的 Amazon Resource Name (ARN)、金鑰 ID 或 AWS Key Management Service (AWS KMS) 客戶受管金鑰的金鑰別名。如果您輸入此參數的金鑰別名，請在值前面加上 **alias/** 。如果您未指定此參數的值， AWS 受管金鑰 則會使用 。
+ PerformanceInsightsRetentionPeriod

  類型：整數

  有效值：7， 731

  預設：7

  描述：（選用） 您想要保留績效詳情資料的天數。

**必要的 IAM 許可**

`AutomationAssumeRole` 參數需要下列動作才能成功使用 Runbook。
+  `ssm:StartAutomationExecution` 
+  `ssm:GetAutomationExecution` 
+  `kms:CreateGrant` 
+  `kms:DescribeKey` 
+  `rds:DescribeDBInstances` 
+  `rds:ModifyDBInstance` 

 **文件步驟** 
+  `aws:executeAwsApi` - 從資料庫執行個體資源識別符收集資料庫執行個體識別符。
+  `aws:assertAwsResourceProperty` - 確認資料庫執行個體狀態為 `available` 。
+  `aws:executeAwsApi` - 收集 `PerformanceInsightsKMSKeyId` 參數中指定之 AWS KMS 客戶受管金鑰的 ARN。
+  `aws:branch` - 檢查是否已將值指派給資料庫執行個體的 `PerformanceInsightsKMSKeyId` 屬性。
+  `aws:executeAwsApi` - 在您於 `DbiResourceId` 參數中指定的資料庫執行個體上啟用績效詳情。
+  `aws:assertAwsResourceProperty` - 確認為 `PerformanceInsightsKMSKeyId` 參數指定的值已用於在資料庫執行個體上啟用 Performance Insights 加密。
+  `aws:assertAwsResourceProperty` - 確認已在資料庫執行個體上啟用績效詳情。