

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

# `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 日志。