

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

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

 AWS Systems Manager Automation 为 Amazon Neptune 提供了预定义的运行手册。有关运行手册的更多信息，请参阅[使用运行手册](https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-documents.html)。有关如何查看运行手册内容的信息，请参阅 [查看运行手册内容](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>

 **描述** 

该`AWS-EnableNeptuneDbAuditLogsToCloudWatch`运行手册可帮助您将 Amazon Neptune 数据库集群的审计日志发送到 Amazon Logs。 CloudWatch 

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

**文档类型**

自动化

**所有者**

Amazon

**平台**

Linux，macOS, Windows

**参数**
+ AutomationAssumeRole

  类型：字符串

  描述：（可选）允许 Systems Manager Automation 代表您执行操作 AWS Identity and Access Management (IAM) 角色的 Amazon 资源名称（ARN）。如果未指定角色，Systems Manager Automation 将使用启动此运行手册的用户的权限。
+ DbClusterResourceId

  类型：字符串

  描述：（必填）要为其启用审核日志的 Neptune 数据库集群的资源 ID。

**所需的 IAM 权限**

`AutomationAssumeRole` 参数需要执行以下操作才能成功使用运行手册。
+  `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 审计日志。
+ VerifyNeptuneDbStatus (`aws:waitAwsResourceProperty`)-验证 Neptune 数据库集群的状态为。`available`
+ VerifyNeptuneDbAuditLogs (`aws:executeScript`)-验证审核日志是否已成功配置为发送到 CloudWatch 日志。

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

 **描述** 

该`AWS-EnableNeptuneDbBackupRetentionPeriod`运行手册可帮助您为 Amazon Neptune 数据库集群启用自动备份，备份保留期在 7 到 35 天之间。

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

**文档类型**

自动化

**所有者**

Amazon

**平台**

Linux，macOS, Windows

**参数**
+ AutomationAssumeRole

  类型：字符串

  描述：（可选）允许 Systems Manager Automation 代表您执行操作 AWS Identity and Access Management (IAM) 角色的 Amazon 资源名称（ARN）。如果未指定角色，Systems Manager Automation 将使用启动此运行手册的用户的权限。
+ DbClusterResourceId

  类型：字符串

  描述：（必填）要为其启用备份的 Neptune 数据库集群的资源 ID。
+ BackupRetentionPeriod

  类型：整数

  有效值：7-35

  描述：（必填）备份的保留天数。
+ PreferredBackupWindow

  类型：字符串

  描述：（可选）每天进行备份的时间段至少为 30 分钟。该值必须采用协调世界时 (UTC)，并使用以下格式：`hh24:mm-hh24:mm`。备份保留期不能与首选维护时段发生冲突。

**所需的 IAM 权限**

`AutomationAssumeRole` 参数需要执行以下操作才能成功使用运行手册。
+  `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>

 **描述** 

 `AWS-EnableNeptuneClusterDeletionProtection`运行手册为您指定的 Amazon Neptune 集群启用删除保护。

**文档类型**

自动化

**所有者**

Amazon

**平台**

Linux，macOS, Windows

**参数**
+ AutomationAssumeRole

  类型：字符串

  描述：（可选）允许 Systems Manager Automation 代表您执行操作 AWS Identity and Access Management (IAM) 角色的 Amazon 资源名称（ARN）。如果未指定角色，Systems Manager Automation 将使用启动此运行手册的用户的权限。
+ DbClusterResourceId

  类型：字符串

  描述：（必填）要启用删除保护的 Neptune 集群的 ID。

**所需的 IAM 权限**

`AutomationAssumeRole` 参数需要执行以下操作才能成功使用运行手册。
+ `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 操作的输出。