Class: AWSCDK::Logs::ParserProcessor

Inherits:
Jsii::Object
  • Object
show all
Includes:
IProcessor
Defined in:
logs/parser_processor.rb

Overview

Parser processor for common data formats.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props) ⇒ ParserProcessor

Creates a new parser processor.



12
13
14
15
16
# File 'logs/parser_processor.rb', line 12

def initialize(props)
  props = props.is_a?(Hash) ? ::AWSCDK::Logs::ParserProcessorProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5QYXJzZXJQcm9jZXNzb3JQcm9wcyJ9")), "props")
  Jsii::Object.instance_method(:initialize).bind(self).call(props)
end

Class Method Details

.jsii_overridable_methodsObject



18
19
20
21
22
# File 'logs/parser_processor.rb', line 18

def self.jsii_overridable_methods
  {
    :type => { kind: :property, name: "type", is_optional: false },
  }
end

Instance Method Details

#typeAWSCDK::Logs::ParserProcessorType

The type of parser.



27
28
29
# File 'logs/parser_processor.rb', line 27

def type()
  jsii_get_property("type")
end

#type=(value) ⇒ Object



31
32
33
34
# File 'logs/parser_processor.rb', line 31

def type=(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5QYXJzZXJQcm9jZXNzb3JUeXBlIn0=")), "type")
  jsii_set_property("type", value)
end