class ClusterLogging
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Redshift.Alpha.ClusterLogging |
Go | github.com/aws/aws-cdk-go/awscdkredshiftalpha/v2#ClusterLogging |
Java | software.amazon.awscdk.services.redshift.alpha.ClusterLogging |
Python | aws_cdk.aws_redshift_alpha.ClusterLogging |
TypeScript (source) | @aws-cdk/aws-redshift-alpha ยป ClusterLogging |
The logging configuration for a Redshift cluster.
Example
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as s3 from 'aws-cdk-lib/aws-s3';
import { ClusterLogging } from '@aws-cdk/aws-redshift-alpha';
declare const vpc: ec2.IVpc;
declare const bucket: s3.IBucket;
const cluster = new Cluster(this, 'Redshift', {
masterUser: {
masterUsername: 'admin',
},
vpc,
logging: ClusterLogging.s3({
bucket,
keyPrefix: 'redshift-logs/',
}),
});
Initializer
new ClusterLogging()
Methods
| Name | Description |
|---|---|
| static cloud | Send logs to CloudWatch. |
| static s3(options) | Send logs to S3. |
static cloudWatch(options?)
public static cloudWatch(options?: CloudWatchLoggingOptions): ClusterLogging
Parameters
- options
CloudWatch Logging Options
Returns
Send logs to CloudWatch.
static s3(options)
public static s3(options: S3LoggingOptions): ClusterLogging
Parameters
- options
S3Logging Options
Returns
Send logs to S3.

.NET
Go
Java
Python
TypeScript (