

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

# `AWS-EnableNeptuneClusterDeletionProtection`
<a name="AWS-EnableNeptuneClusterDeletionProtection"></a>

 **Description** 

 `AWS-EnableNeptuneClusterDeletionProtection` Runbook 會為您指定的 Amazon Neptune 叢集啟用刪除保護。

**文件類型**

 自動化

**擁有者**

Amazon

**平台**

Linux、macOS、 Windows

**參數**
+ AutomationAssumeRole

  類型：字串

  描述：（選用） 允許 Systems Manager Automation 代表您執行動作的 (IAM) 角色的 AWS Identity and Access Management Amazon Resource Name (ARN)。如果未指定角色，Systems Manager Automation 會使用啟動此 Runbook 的使用者許可。
+ DbClusterResourceId

  類型：字串

  描述：（必要） 您要啟用刪除保護的 Neptune 叢集 ID。

**必要的 IAM 許可**

`AutomationAssumeRole` 參數需要下列動作才能成功使用 Runbook。
+ `ssm:GetAutomationExecution`
+ `ssm:StartAutomationExecution`
+ `neptune:DescribeDBCluster`
+ `neptune:ModifyDBCluster`
+ `rds:DescribeDBClusters`
+ `rds:ModifyDBCluster`

 **文件步驟** 
+ GetNeptuneDbClusterIdentifier (`aws:executeAwsApi`) - 傳回 Neptune 資料庫叢集的 ID。
+ VerifyNeptuneDbEngine (`aws:assertAwsResourceProperty`) - 驗證指定資料庫叢集的引擎類型為 `neptune`。
+ VerifyNeptuneStatus (`aws:waitForAwsResourceProperty`) - 驗證叢集的狀態為 `available`。
+ EnableNeptuneDbDeletionProtection (`aws:executeAwsApi`) - 在 Neptune 資料庫叢集上啟用刪除保護。
+ VerifyNeptuneDbDeletionProtection (`aws:assertAwsResourceProperty`) - 驗證資料庫叢集上已啟用刪除保護。

 **輸出** 
+ EnableNeptuneDbDeletionProtection.EnableNeptuneDbDeletionProtectionResponse - API 操作的輸出。