EnableLogging
- class aws_cdk.aws_kinesisfirehose_destinations_alpha.EnableLogging(log_group=None)
Bases:
object
(experimental) Enables logging for error logs with an optional custom CloudWatch log group.
When this class is used, logging is enabled (
logging: true
) and you can optionally provide a CloudWatch log group for storing the error logs.If no log group is provided, a default one will be created automatically.
- Stability:
experimental
- ExampleMetadata:
infused
Example:
import aws_cdk.aws_logs as logs # bucket: s3.Bucket log_group = logs.LogGroup(self, "Log Group") destination = destinations.S3Bucket(bucket, logging_config=destinations.EnableLogging(log_group) ) firehose.DeliveryStream(self, "Delivery Stream", destination=destination )
- Parameters:
log_group (
Optional
[ILogGroup
]) – The CloudWatch log group where log streams will be created to hold error logs.- Stability:
experimental
Attributes
- log_group
(experimental) The CloudWatch log group where log streams will be created to hold error logs.
- Stability:
experimental
- logging
(experimental) If true, log errors when data transformation or data delivery fails.
true
when usingEnableLogging
,false
when usingDisableLogging
.- Stability:
experimental