Class: AWSCDK::Logs::CfnTransformer::SubstituteStringEntryProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::SubstituteStringEntryProperty
- Defined in:
- logs/cfn_transformer.rb
Overview
This object defines one log field key that will be replaced using the substituteString processor.
Instance Attribute Summary collapse
-
#from ⇒ String
readonly
The regular expression string to be replaced.
-
#source ⇒ String
readonly
The key to modify.
-
#to ⇒ String
readonly
The string to be substituted for each match of
from.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(from:, source:, to:) ⇒ SubstituteStringEntryProperty
constructor
A new instance of SubstituteStringEntryProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(from:, source:, to:) ⇒ SubstituteStringEntryProperty
Returns a new instance of SubstituteStringEntryProperty.
2038 2039 2040 2041 2042 2043 2044 2045 |
# File 'logs/cfn_transformer.rb', line 2038 def initialize(from:, source:, to:) @from = from Jsii::Type.check_type(@from, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "from") @source = source Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "source") @to = to Jsii::Type.check_type(@to, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "to") end |
Instance Attribute Details
#from ⇒ String (readonly)
The regular expression string to be replaced.
Special regex characters such as [ and ] must be escaped using \ when using double quotes and with \ when using single quotes. For more information, see Class Pattern on the Oracle web site.
2053 2054 2055 |
# File 'logs/cfn_transformer.rb', line 2053 def from @from end |
#source ⇒ String (readonly)
The key to modify.
2058 2059 2060 |
# File 'logs/cfn_transformer.rb', line 2058 def source @source end |
#to ⇒ String (readonly)
The string to be substituted for each match of from.
2063 2064 2065 |
# File 'logs/cfn_transformer.rb', line 2063 def to @to end |
Class Method Details
.jsii_properties ⇒ Object
2065 2066 2067 2068 2069 2070 2071 |
# File 'logs/cfn_transformer.rb', line 2065 def self.jsii_properties { :from => "from", :source => "source", :to => "to", } end |
Instance Method Details
#to_jsii ⇒ Object
2073 2074 2075 2076 2077 2078 2079 2080 2081 |
# File 'logs/cfn_transformer.rb', line 2073 def to_jsii result = {} result.merge!({ "from" => @from, "source" => @source, "to" => @to, }) result.compact end |