Skip to content
v2.278.0

LogDeliveryProperty Struct ​

Configuration for log delivery for the replicator.

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 logDeliveryProperty: msk.CfnReplicator.LogDeliveryProperty = {
  replicatorLogDelivery: {
    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

log_delivery_property = msk.CfnReplicator.LogDeliveryProperty(
    replicator_log_delivery=msk.CfnReplicator.ReplicatorLogDeliveryProperty(
        cloud_watch_logs=msk.CfnReplicator.CloudWatchLogsProperty(
            enabled=False,

            # the properties below are optional
            log_group="logGroup"
        ),
        firehose=msk.CfnReplicator.FirehoseProperty(
            enabled=False,

            # the properties below are optional
            delivery_stream="deliveryStream"
        ),
        s3=msk.CfnReplicator.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.*;

LogDeliveryProperty logDeliveryProperty = LogDeliveryProperty.builder()
        .replicatorLogDelivery(ReplicatorLogDeliveryProperty.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())
        .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 logDeliveryProperty = new LogDeliveryProperty {
    ReplicatorLogDelivery = new ReplicatorLogDeliveryProperty {
        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"

logDeliveryProperty := &LogDeliveryProperty{
	ReplicatorLogDelivery: &ReplicatorLogDeliveryProperty{
		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 ​

replicatorLogDeliveryoptionalIResolvable | CfnReplicator.ReplicatorLogDeliveryPropertyreplicator_log_deliveryoptionaltyping.Union[IResolvable, ReplicatorLogDeliveryProperty]replicatorLogDeliveryoptionalIResolvableReplicatorLogDeliveryoptionalIResolvableReplicatorLogDeliveryoptionalinterface{} #
Details of the log delivery for the replicator.