interface LoggingProperties
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Redshift.Alpha.LoggingProperties |
Go | github.com/aws/aws-cdk-go/awscdkredshiftalpha/v2#LoggingProperties |
Java | software.amazon.awscdk.services.redshift.alpha.LoggingProperties |
Python | aws_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', 'amzn-s3-demo-bucket');
const cluster = new Cluster(this, 'Redshift', {
masterUser: {
masterUsername: 'admin',
},
vpc,
loggingProperties: {
loggingBucket: bucket,
loggingKeyPrefix: 'prefix',
}
});
Properties
| Name | Type | Description |
|---|---|---|
| logging | IBucket | Bucket to send logs to. |
| logging | string | Prefix 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.

.NET
Go
Java
Python
TypeScript (