# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 --- description: | ### Document name - AWSConfigRemediation-EnableRedshiftClusterAuditLogging ## What does this document do? This automation document enables audit logging on the Amazon Redshift cluster using [EnableLogging](https://docs.aws.amazon.com/redshift/latest/APIReference/API_EnableLogging.html) API call with given bucket name and s3 key prefix. ## Input Parameters * ClusterIdentifier: (Required) The unique identifier of the Amazon Redshift cluster on which logging to be started. * AutomationAssumeRole: (Required) The ARN of the role that allows Automation to perform the actions on your behalf. * BucketName: (Required) The name of an existing Amazon S3 bucket where the log files are to be stored. * S3KeyPrefix: (Optional) The prefix applied to the log file names. ## Output Parameters * EnableLoggingWithPrefix.Response: Standard HTTP response of the EnableLogging API. * EnableLoggingWithoutPrefix.Response: Standard HTTP response of the EnableLogging API. schemaVersion: "0.3" assumeRole: "{{ AutomationAssumeRole }}" outputs: - EnableLoggingWithoutPrefix.Response - EnableLoggingWithPrefix.Response parameters: ClusterIdentifier: type: String description: The unique identifier of the Amazon Redshift cluster on which the logging logging to be started. allowedPattern: "^(?!.*--)[a-z][a-z0-9-]{0,62}(?