Class: AWSCDK::KinesisFirehose::CloudWatchLogProcessor
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::KinesisFirehose::CloudWatchLogProcessor
- Includes:
- IDataProcessor
- Defined in:
- kinesis_firehose/cloud_watch_log_processor.rb
Overview
The data processor to extract message after decompression of CloudWatch Logs.
This processor must used with DecompressionProcessor
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(_scope, _options) ⇒ AWSCDK::KinesisFirehose::DataProcessorConfig
Binds this processor to a destination of a delivery stream.
-
#initialize(options) ⇒ CloudWatchLogProcessor
constructor
A new instance of CloudWatchLogProcessor.
-
#props ⇒ AWSCDK::KinesisFirehose::DataProcessorProps
The constructor props of the DataProcessor.
Constructor Details
#initialize(options) ⇒ CloudWatchLogProcessor
Returns a new instance of CloudWatchLogProcessor.
14 15 16 17 18 |
# File 'kinesis_firehose/cloud_watch_log_processor.rb', line 14 def initialize() = .is_a?(Hash) ? ::AWSCDK::KinesisFirehose::CloudWatchLogProcessorOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLkNsb3VkV2F0Y2hMb2dQcm9jZXNzb3JPcHRpb25zIn0=")), "options") Jsii::Object.instance_method(:initialize).bind(self).call() end |
Class Method Details
.jsii_overridable_methods ⇒ Object
20 21 22 23 24 25 |
# File 'kinesis_firehose/cloud_watch_log_processor.rb', line 20 def self.jsii_overridable_methods { :props => { kind: :property, name: "props", is_optional: false }, :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(_scope, _options) ⇒ AWSCDK::KinesisFirehose::DataProcessorConfig
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.
42 43 44 45 46 47 |
# File 'kinesis_firehose/cloud_watch_log_processor.rb', line 42 def bind(_scope, ) Jsii::Type.check_type(_scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "_scope") = .is_a?(Hash) ? ::AWSCDK::KinesisFirehose::DataProcessorBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLkRhdGFQcm9jZXNzb3JCaW5kT3B0aW9ucyJ9")), "_options") jsii_call_method("bind", [_scope, ]) end |
#props ⇒ AWSCDK::KinesisFirehose::DataProcessorProps
The constructor props of the DataProcessor.
30 31 32 |
# File 'kinesis_firehose/cloud_watch_log_processor.rb', line 30 def props() jsii_get_property("props") end |