Skip to content
v2.273.0

Experimental

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

S3LoggingConfiguration Struct ​

Details of the Amazon S3 destination for broker logs.

Example ​

ts
declare const vpc: ec2.Vpc;
declare const bucket: s3.IBucket;
const cluster = new msk.Cluster(this, 'cluster', {
  clusterName: 'myCluster',
  kafkaVersion: msk.KafkaVersion.V4_1_X_KRAFT,
  vpc,
  logging: {
    s3: {
      bucket,
    },
  },
});

Properties ​

bucketIBucketbucketIBucketbucketIBucketBucketIBucketBucketIBucketrequired#
The S3 bucket that is the destination for broker logs.
prefixstringprefixstrprefixStringPrefixstringPrefix*string= no prefix#
The S3 prefix that is the destination for broker logs.