Skip to content
v2.275.0

Experimental

@aws-cdk/aws-redshift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

CloudWatchLoggingOptions Struct ​

Options for CloudWatch logging.

Example ​

ts
import * as ec2 from 'aws-cdk-lib/aws-ec2';
import { ClusterLogging, LogExport } from '@aws-cdk/aws-redshift-alpha';

declare const vpc: ec2.IVpc;

const cluster = new Cluster(this, 'Redshift', {
  masterUser: {
    masterUsername: 'admin',
  },
  vpc,
  logging: ClusterLogging.cloudWatch({
    logExports: [LogExport.CONNECTION_LOG, LogExport.USER_LOG],
  }),
});

Properties ​

logExportsoptionalLogExport[]log_exportsoptionaltyping.List[LogExport]logExportsoptionalList<LogExport>LogExportsoptionalLogExport[]LogExportsoptional*[]LogExport#
The types of logs to export.

Default: [LogExport.CONNECTION_LOG, LogExport.USER_LOG, LogExport.USER_ACTIVITY_LOG]