BrokerLogging

class aws_cdk.aws_msk.BrokerLogging(*, cloudwatch_log_group=None, firehose_delivery_stream_name=None, s3=None)

Bases: object

(experimental) Configuration details related to broker logs.

Parameters
  • cloudwatch_log_group (Optional[ILogGroup]) – (experimental) The CloudWatch Logs group that is the destination for broker logs. Default: - disabled

  • firehose_delivery_stream_name (Optional[str]) – (experimental) The Kinesis Data Firehose delivery stream that is the destination for broker logs. Default: - disabled

  • s3 (Optional[S3LoggingConfiguration]) – (experimental) Details of the Amazon S3 destination for broker logs. Default: - disabled

Stability

experimental

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_logs as logs
import aws_cdk.aws_msk as msk
import aws_cdk.aws_s3 as s3

# bucket is of type Bucket
# log_group is of type LogGroup

broker_logging = msk.BrokerLogging(
    cloudwatch_log_group=log_group,
    firehose_delivery_stream_name="firehoseDeliveryStreamName",
    s3=msk.S3LoggingConfiguration(
        bucket=bucket,

        # the properties below are optional
        prefix="prefix"
    )
)

Attributes

cloudwatch_log_group

(experimental) The CloudWatch Logs group that is the destination for broker logs.

Default
  • disabled

Stability

experimental

Return type

Optional[ILogGroup]

firehose_delivery_stream_name

(experimental) The Kinesis Data Firehose delivery stream that is the destination for broker logs.

Default
  • disabled

Stability

experimental

Return type

Optional[str]

s3

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

Default
  • disabled

Stability

experimental

Return type

Optional[S3LoggingConfiguration]