Skip to content
v2.273.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 Added in v2.273.0-alpha.0 ​

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 ​

logExportsLogExport[]log_exportstyping.List[LogExport]logExportsList<LogExport>LogExportsLogExport[]LogExports*[]LogExport= [LogExport.CONNECTION_LOG, LogEx…#
The types of logs to export.
default

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