Class: AWSCDK::Logs::SplitStringEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(delimiter:, source:) ⇒ SplitStringEntryProperty

Returns a new instance of SplitStringEntryProperty.

Parameters:



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

#delimiterAWSCDK::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

#sourceString (readonly)

The key of the field to split.

Returns:

  • (String)


23
24
25
# File 'logs/split_string_entry_property.rb', line 23

def source
  @source
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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