Class: AWSCDK::Logs::SplitStringEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::SplitStringEntryProperty
- Defined in:
- logs/split_string_entry_property.rb
Overview
This object defines one log field that will be split with the splitString processor.
Instance Attribute Summary collapse
-
#delimiter ⇒ AWSCDK::Logs::DelimiterCharacter
readonly
The separator character to split the string on.
-
#source ⇒ String
readonly
The key of the field to split.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(delimiter:, source:) ⇒ SplitStringEntryProperty
constructor
A new instance of SplitStringEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(delimiter:, source:) ⇒ SplitStringEntryProperty
Returns a new instance of SplitStringEntryProperty.
9 10 11 12 13 14 |
# File 'logs/split_string_entry_property.rb', line 9 def initialize(delimiter:, source:) @delimiter = delimiter Jsii::Type.check_type(@delimiter, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5EZWxpbWl0ZXJDaGFyYWN0ZXIifQ==")), "delimiter") @source = source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") end |
Instance Attribute Details
#delimiter ⇒ AWSCDK::Logs::DelimiterCharacter (readonly)
The separator character to split the string on.
19 20 21 |
# File 'logs/split_string_entry_property.rb', line 19 def delimiter @delimiter end |
#source ⇒ String (readonly)
The key of the field to split.
23 24 25 |
# File 'logs/split_string_entry_property.rb', line 23 def source @source end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'logs/split_string_entry_property.rb', line 25 def self.jsii_properties { :delimiter => "delimiter", :source => "source", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'logs/split_string_entry_property.rb', line 32 def to_jsii result = {} result.merge!({ "delimiter" => @delimiter, "source" => @source, }) result.compact end |