@aws-cdk_aws-redshift-alpha.LoggingProperties

interface LoggingProperties ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Redshift.Alpha.LoggingProperties
Gogithub.com/aws/aws-cdk-go/awscdkredshiftalpha/v2#LoggingProperties
Javasoftware.amazon.awscdk.services.redshift.alpha.LoggingProperties
Pythonaws_cdk.aws_redshift_alpha.LoggingProperties
TypeScript (source)@aws-cdk/aws-redshift-alpha ยป LoggingProperties

Logging bucket and S3 prefix combination.

Example

import * as ec2 from 'aws-cdk-lib/aws-ec2';
import * as s3 from 'aws-cdk-lib/aws-s3';

const vpc = new ec2.Vpc(this, 'Vpc');
const bucket = s3.Bucket.fromBucketName(this, 'bucket', 'logging-bucket');

const cluster = new Cluster(this, 'Redshift', {
  masterUser: {
    masterUsername: 'admin',
  },
  vpc,
  loggingProperties: {
    loggingBucket: bucket,
    loggingKeyPrefix: 'prefix',
  }
});

Properties

NameTypeDescription
loggingBucket๐Ÿ”นIBucketBucket to send logs to.
loggingKeyPrefix๐Ÿ”นstringPrefix used for logging.

loggingBucket๐Ÿ”น

Type: IBucket

Bucket to send logs to.

Logging information includes queries and connection attempts, for the specified Amazon Redshift cluster.


loggingKeyPrefix๐Ÿ”น

Type: string

Prefix used for logging.