BrokerLogsProperty Struct
The broker logs configuration for this MSK cluster.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_msk as msk } from 'aws-cdk-lib';
const brokerLogsProperty: msk.CfnCluster.BrokerLogsProperty = {
cloudWatchLogs: {
enabled: false,
// the properties below are optional
logGroup: 'logGroup',
},
firehose: {
enabled: false,
// the properties below are optional
deliveryStream: 'deliveryStream',
},
s3: {
enabled: false,
// the properties below are optional
bucket: 'bucket',
prefix: 'prefix',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_msk as msk
broker_logs_property = msk.CfnCluster.BrokerLogsProperty(
cloud_watch_logs=msk.CfnCluster.CloudWatchLogsProperty(
enabled=False,
# the properties below are optional
log_group="logGroup"
),
firehose=msk.CfnCluster.FirehoseProperty(
enabled=False,
# the properties below are optional
delivery_stream="deliveryStream"
),
s3=msk.CfnCluster.S3Property(
enabled=False,
# the properties below are optional
bucket="bucket",
prefix="prefix"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.msk.*;
BrokerLogsProperty brokerLogsProperty = BrokerLogsProperty.builder()
.cloudWatchLogs(CloudWatchLogsProperty.builder()
.enabled(false)
// the properties below are optional
.logGroup("logGroup")
.build())
.firehose(FirehoseProperty.builder()
.enabled(false)
// the properties below are optional
.deliveryStream("deliveryStream")
.build())
.s3(S3Property.builder()
.enabled(false)
// the properties below are optional
.bucket("bucket")
.prefix("prefix")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MSK;
var brokerLogsProperty = new BrokerLogsProperty {
CloudWatchLogs = new CloudWatchLogsProperty {
Enabled = false,
// the properties below are optional
LogGroup = "logGroup"
},
Firehose = new FirehoseProperty {
Enabled = false,
// the properties below are optional
DeliveryStream = "deliveryStream"
},
S3 = new S3Property {
Enabled = false,
// the properties below are optional
Bucket = "bucket",
Prefix = "prefix"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
brokerLogsProperty := &BrokerLogsProperty{
CloudWatchLogs: &CloudWatchLogsProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
LogGroup: jsii.String("logGroup"),
},
Firehose: &FirehoseProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
DeliveryStream: jsii.String("deliveryStream"),
},
S3: &S3Property{
Enabled: jsii.Boolean(false),
// the properties below are optional
Bucket: jsii.String("bucket"),
Prefix: jsii.String("prefix"),
},
}
Properties
cloudWatchLogsoptionalIResolvable | CfnCluster.cloud_watch_logsoptionaltyping.Union[IResolvable, CloudWatchLogsProperty]cloudWatchLogsoptionalIResolvableCloudWatchLogsoptionalIResolvableCloudWatchLogsoptionalinterface{} #firehoseoptionalIResolvable | CfnCluster.FirehosePropertyfirehoseoptionaltyping.Union[IResolvable, FirehoseProperty]firehoseoptionalIResolvableFirehoseoptionalIResolvableFirehoseoptionalinterface{} #Details of the Kinesis Data Firehose delivery stream that is the destination for broker logs.
s3optionalIResolvable | CfnCluster.S3Propertys3optionaltyping.Union[IResolvable, S3Property]s3optionalIResolvableS3optionalIResolvableS3optionalinterface{} #Details of the Amazon S3 destination for broker logs.