Class: AWSCDK::Logs::VendedLogParser
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::Logs::VendedLogParser
- Includes:
- IProcessor
- Defined in:
- logs/vended_log_parser.rb
Overview
Parser processor for AWS vended logs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(props) ⇒ VendedLogParser
constructor
Creates a new vended log parser processor.
-
#log_type ⇒ AWSCDK::Logs::VendedLogType
The type of AWS vended log.
- #log_type=(value) ⇒ Object
Constructor Details
#initialize(props) ⇒ VendedLogParser
Creates a new vended log parser processor.
12 13 14 15 16 |
# File 'logs/vended_log_parser.rb', line 12 def initialize(props) props = props.is_a?(Hash) ? ::AWSCDK::Logs::VendedLogParserProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5WZW5kZWRMb2dQYXJzZXJQcm9wcyJ9")), "props") Jsii::Object.instance_method(:initialize).bind(self).call(props) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 |
# File 'logs/vended_log_parser.rb', line 18 def self.jsii_overridable_methods { :log_type => { kind: :property, name: "logType", is_optional: false }, } end |
Instance Method Details
#log_type ⇒ AWSCDK::Logs::VendedLogType
The type of AWS vended log.
27 28 29 |
# File 'logs/vended_log_parser.rb', line 27 def log_type() jsii_get_property("logType") end |
#log_type=(value) ⇒ Object
31 32 33 34 |
# File 'logs/vended_log_parser.rb', line 31 def log_type=(value) Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5WZW5kZWRMb2dUeXBlIn0=")), "logType") jsii_set_property("logType", value) end |