CloudWatchLogProcessor

class aws_cdk.aws_kinesisfirehose.CloudWatchLogProcessor(*, data_message_extraction)

Bases: object

The data processor to extract message after decompression of CloudWatch Logs.

This processor must used with DecompressionProcessor

See:

https://docs.aws.amazon.com/firehose/latest/dev/Message_extraction.html

ExampleMetadata:

infused

Example:

# bucket: s3.Bucket

s3_destination = firehose.S3Bucket(bucket,
    processors=[
        firehose.DecompressionProcessor(),
        firehose.CloudWatchLogProcessor(data_message_extraction=True)
    ]
)
firehose.DeliveryStream(self, "Delivery Stream",
    destination=s3_destination
)
Parameters:

data_message_extraction (bool) – Extract message from CloudWatch logs. This must be true.

Methods

bind(_scope, *, role)

Binds this processor to a destination of a delivery stream.

Implementers should use this method to grant processor invocation permissions to the provided stream and return the necessary configuration to register as a processor.

Parameters:
  • _scope (Construct)

  • role (IRole) – The IAM role assumed by Amazon Data Firehose to write to the destination that this DataProcessor will bind to.

Return type:

DataProcessorConfig

Attributes

props

The constructor props of the DataProcessor.