Class: AWSCDK::Logs::CfnTransformer::SubstituteStringProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CfnTransformer::SubstituteStringProperty
- Defined in:
- logs/cfn_transformer.rb
Overview
This processor matches a key’s value against a regular expression and replaces all matches with a replacement string.
For more information about this processor including examples, see substituteString in the CloudWatch Logs User Guide .
Instance Attribute Summary collapse
-
#entries ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Logs::CfnTransformer::SubstituteStringEntryProperty>
readonly
An array of objects, where each object contains the information about one key to match and replace.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(entries:) ⇒ SubstituteStringProperty
constructor
A new instance of SubstituteStringProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(entries:) ⇒ SubstituteStringProperty
Returns a new instance of SubstituteStringProperty.
2093 2094 2095 2096 |
# File 'logs/cfn_transformer.rb', line 2093 def initialize(entries:) @entries = entries Jsii::Type.check_type(@entries, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5DZm5UcmFuc2Zvcm1lci5TdWJzdGl0dXRlU3RyaW5nRW50cnlQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "entries") end |
Instance Attribute Details
#entries ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Logs::CfnTransformer::SubstituteStringEntryProperty> (readonly)
An array of objects, where each object contains the information about one key to match and replace.
2102 2103 2104 |
# File 'logs/cfn_transformer.rb', line 2102 def entries @entries end |
Class Method Details
.jsii_properties ⇒ Object
2104 2105 2106 2107 2108 |
# File 'logs/cfn_transformer.rb', line 2104 def self.jsii_properties { :entries => "entries", } end |
Instance Method Details
#to_jsii ⇒ Object
2110 2111 2112 2113 2114 2115 2116 |
# File 'logs/cfn_transformer.rb', line 2110 def to_jsii result = {} result.merge!({ "entries" => @entries, }) result.compact end |