

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

# `AWSConfigRemediation-EnableRedshiftClusterAuditLogging`
<a name="automation-aws-enable-redshift-audit"></a>

 **描述** 

 `AWSConfigRemediation-EnableRedshiftClusterAuditLogging`运行手册将为您指定的 Amazon Redshift 集群启用审核日志记录功能。

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

**文档类型**

自动化

**所有者**

Amazon

**平台**

数据库

**参数**
+ AutomationAssumeRole

  类型：字符串

  描述：（必需）允许 Systems Manager Automation 代表您执行操作的 AWS Identity and Access Management (IAM) 角色的 Amazon 资源名称（ARN）。
+ BucketName

  类型：字符串

  描述：（必需）要将日志上传到的 Amazon Simple Storage Service (Amazon S3) 存储桶的名称。
+ ClusterIdentifier

  类型：字符串

  描述：（必需）要对其启用审核日志记录的集群的唯一标识符。
+ S3 KeyPrefix

  类型：字符串

  描述：（可选）要将日志上传到的 Amazon S3 密钥前缀（子文件夹）。

**所需的 IAM 权限**

`AutomationAssumeRole` 参数需要执行以下操作才能成功使用运行手册。
+  `ssm:StartAutomationExecution` 
+  `ssm:GetAutomationExecution` 
+  `redshift:DescribeLoggingStatus` 
+  `redshift:EnableLogging` 
+  `s3:GetBucketAcl` 
+  `s3:PutObject` 

 **文档步骤** 
+  `aws:branch` - 根据是否为 `S3KeyPrefix` 参数指定了值进行分支。
+  `aws:executeAwsApi` - 对 `ClusterIdentifier` 参数中指定的集群启用审核日志记录。
+  `aws:assertAwsResourceProperty` - 验证集群上是否启用了审核日志记录。