

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

# Neptune
<a name="automation-ref-neptune"></a>

 AWS Systems Manager 自動化為 Amazon Neptune 提供預先定義的 Runbook。如需有關執行手冊的詳細資訊，請參閱 [Working with runbooks](https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-documents.html)。如需如何檢視 Runbook 內容的詳細資訊，請參閱 [檢視 Runbook 內容](automation-runbook-reference.md#view-automation-json) 。

**Topics**
+ [`AWS-EnableNeptuneDbAuditLogsToCloudWatch`](AWS-EnableNeptuneDbAuditLogsToCloudWatch.md)
+ [`AWS-EnableNeptuneDbBackupRetentionPeriod`](AWS-EnableNeptuneDbBackupRetentionPeriod.md)
+ [`AWS-EnableNeptuneClusterDeletionProtection`](AWS-EnableNeptuneClusterDeletionProtection.md)

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

 **Description** 

`AWS-EnableNeptuneDbAuditLogsToCloudWatch` Runbook 可協助您將 Amazon Neptune 資料庫叢集的稽核日誌傳送至 Amazon CloudWatch Logs。

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

**文件類型**

 自動化

**擁有者**

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 資料庫引擎類型為 `neptune`。
+ EnableNeptuneDbAuditLogs (`aws:executeAwsApi`) - 允許傳送 Neptune 資料庫叢集的稽核日誌 CloudWatch Logs。
+ VerifyNeptuneDbStatus (`aws:waitAwsResourceProperty`) - 驗證 Neptune 資料庫叢集狀態為 `available`。
+ VerifyNeptuneDbAuditLogs (`aws:executeScript`) - 驗證稽核日誌已成功設定為傳送至 CloudWatch Logs。

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

 **Description** 

`AWS-EnableNeptuneDbBackupRetentionPeriod` Runbook 可協助您為 Amazon Neptune 資料庫叢集啟用備份保留期介於 7 到 35 天的自動備份。

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

**文件類型**

 自動化

**擁有者**

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。
+ BackupRetentionPeriod

  類型：整數

  有效值：7-35

  描述：（必要） 備份保留的天數。
+ PreferredBackupWindow

  類型：字串

  描述：（選用） 進行備份時，每天至少 30 分鐘的時段。該值必須是國際標準時間座標 (UTC)，並使用格式：`hh24:mm-hh24:mm`。備份保留期不能與偏好的維護時段衝突。

**必要的 IAM 許可**

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

 **文件步驟** 
+ GetNeptuneDbClusterIdentifier (`aws:executeAwsApi`) - 傳回 Neptune 資料庫叢集的 ID。
+ VerifyNeptuneDbEngine (`aws:assertAwsResourceProperty`) - 驗證 Neptune 資料庫引擎類型為 `neptune`。
+ VerifyNeptuneDbStatus (`aws:waitAwsResourceProperty`) - 驗證 Neptune 資料庫叢集狀態為 `available`。
+ ModifyNeptuneDbRetentionPeriod (`aws:executeAwsApi`) - 設定 Neptune 資料庫叢集的保留期間。
+ VerifyNeptuneDbBackupsEnabled (`aws:executeScript`) - 驗證保留期間和備份時段已成功設定。

# `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 操作的輸出。