Class: AWSCDK::Logs::CfnTransformer::SplitStringEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::SplitStringEntryProperty
- 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
-
#delimiter ⇒ String
readonly
The separator characters to split the string entry 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.
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
#delimiter ⇒ String (readonly)
The separator characters to split the string entry on.
1970 1971 1972 |
# File 'logs/cfn_transformer.rb', line 1970 def delimiter @delimiter end |
#source ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |