Class: AWSCDK::Logs::CfnTransformer::SplitStringEntryProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
logs/cfn_transformer.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:

  • delimiter (String)

    The separator characters to split the string entry on.

  • source (String)

    The key of the field to split.



1959
1960
1961
1962
1963
1964
# File 'logs/cfn_transformer.rb', line 1959

def initialize(delimiter:, source:)
  @delimiter = delimiter
  Jsii::Type.check_type(@delimiter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "delimiter")
  @source = source
  Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source")
end

Instance Attribute Details

#delimiterString (readonly)

The separator characters to split the string entry on.



1970
1971
1972
# File 'logs/cfn_transformer.rb', line 1970

def delimiter
  @delimiter
end

#sourceString (readonly)

The key of the field to split.



1975
1976
1977
# File 'logs/cfn_transformer.rb', line 1975

def source
  @source
end

Class Method Details

.jsii_propertiesObject



1977
1978
1979
1980
1981
1982
# File 'logs/cfn_transformer.rb', line 1977

def self.jsii_properties
  {
    :delimiter => "delimiter",
    :source => "source",
  }
end

Instance Method Details

#to_jsiiObject



1984
1985
1986
1987
1988
1989
1990
1991
# File 'logs/cfn_transformer.rb', line 1984

def to_jsii
  result = {}
  result.merge!({
    "delimiter" => @delimiter,
    "source" => @source,
  })
  result.compact
end