Class: AWSCDK::Logs::VendedLogParserProps
- Inherits:
-
BaseProcessorProps
- Object
- BaseProcessorProps
- AWSCDK::Logs::VendedLogParserProps
- Defined in:
- logs/vended_log_parser_props.rb
Overview
Properties for creating AWS vended log parsers.
Instance Attribute Summary collapse
-
#log_type ⇒ AWSCDK::Logs::VendedLogType
readonly
The type of AWS vended log to parse.
-
#source ⇒ String?
readonly
Source field to parse.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_type:, source: nil) ⇒ VendedLogParserProps
constructor
A new instance of VendedLogParserProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_type:, source: nil) ⇒ VendedLogParserProps
Returns a new instance of VendedLogParserProps.
9 10 11 12 13 14 |
# File 'logs/vended_log_parser_props.rb', line 9 def initialize(log_type:, source: nil) @log_type = log_type Jsii::Type.check_type(@log_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5WZW5kZWRMb2dUeXBlIn0=")), "logType") @source = source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") unless @source.nil? end |
Instance Attribute Details
#log_type ⇒ AWSCDK::Logs::VendedLogType (readonly)
The type of AWS vended log to parse.
19 20 21 |
# File 'logs/vended_log_parser_props.rb', line 19 def log_type @log_type end |
#source ⇒ String? (readonly)
Note:
Default:
Source field to parse.
24 25 26 |
# File 'logs/vended_log_parser_props.rb', line 24 def source @source end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'logs/vended_log_parser_props.rb', line 26 def self.jsii_properties { :log_type => "logType", :source => "source", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'logs/vended_log_parser_props.rb', line 33 def to_jsii result = {} result.merge!(super) result.merge!({ "logType" => @log_type, "source" => @source, }) result.compact end |