S3LoggingConfiguration

class aws_cdk.aws_msk_alpha.S3LoggingConfiguration(*, bucket, prefix=None)

Bases: object

(experimental) Details of the Amazon S3 destination for broker logs.

Parameters:
  • bucket (IBucket) – (experimental) The S3 bucket that is the destination for broker logs.

  • prefix (Optional[str]) – (experimental) The S3 prefix that is the destination for broker logs. Default: - no prefix

Stability:

experimental

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc
# bucket: s3.IBucket

cluster = msk.Cluster(self, "cluster",
    cluster_name="myCluster",
    kafka_version=msk.KafkaVersion.V2_8_1,
    vpc=vpc,
    logging=msk.BrokerLogging(
        s3=msk.S3LoggingConfiguration(
            bucket=bucket
        )
    )
)

Attributes

bucket

(experimental) The S3 bucket that is the destination for broker logs.

Stability:

experimental

prefix

(experimental) The S3 prefix that is the destination for broker logs.

Default:
  • no prefix

Stability:

experimental