Skip to content
v2.274.0

DisableLogging Class ​

Disables logging for error logs.

When this class is used, logging is disabled (logging: false) and no CloudWatch log group can be specified.

Example ​

ts
declare const bucket: s3.Bucket;
const destination = new firehose.S3Bucket(bucket, {
  loggingConfig: new firehose.DisableLogging(),
});
new firehose.DeliveryStream(this, 'Delivery Stream', {
  destination: destination,
});
python
# bucket: s3.Bucket

destination = firehose.S3Bucket(bucket,
    logging_config=firehose.DisableLogging()
)
firehose.DeliveryStream(self, "Delivery Stream",
    destination=destination
)
java
Bucket bucket;

S3Bucket destination = S3Bucket.Builder.create(bucket)
        .loggingConfig(new DisableLogging())
        .build();
DeliveryStream.Builder.create(this, "Delivery Stream")
        .destination(destination)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
Bucket bucket;

var destination = new S3Bucket(bucket, new S3BucketProps {
    LoggingConfig = new DisableLogging()
});
new DeliveryStream(this, "Delivery Stream", new DeliveryStreamProps {
    Destination = destination
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var bucket Bucket

destination := firehose.NewS3Bucket(bucket, &S3BucketProps{
	LoggingConfig: firehose.NewDisableLogging(),
})
firehose.NewDeliveryStream(this, jsii.String("Delivery Stream"), &DeliveryStreamProps{
	Destination: destination,
})

Initializer ​

ts
new DisableLogging()
python
DisableLogging()
java
new DisableLogging()
csharp
new DisableLogging()
go
NewDisableLogging()

Properties ​

loggingbooleanloggingboolloggingBooleanLoggingboolLogging*boolrequired#
If true, log errors when data transformation or data delivery fails.

true when using EnableLogging, false when using DisableLogging.