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],
}),
});