Class: AWSCDK::Logs::SubstituteStringProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entries:) ⇒ SubstituteStringProperty

Returns a new instance of SubstituteStringProperty.

Parameters:



10
11
12
13
# File 'logs/substitute_string_property.rb', line 10

def initialize(entries:)
  @entries = entries.is_a?(Array) ? entries.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::Logs::SubstituteStringEntryProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : entries
  Jsii::Type.check_type(@entries, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb2dzLlN1YnN0aXR1dGVTdHJpbmdFbnRyeVByb3BlcnR5In0sImtpbmQiOiJhcnJheSJ9fQ==")), "entries")
end

Instance Attribute Details

#entriesArray<AWSCDK::Logs::SubstituteStringEntryProperty> (readonly)

An array of objects, where each object contains information about one key to match and replace.



18
19
20
# File 'logs/substitute_string_property.rb', line 18

def entries
  @entries
end

Class Method Details

.jsii_propertiesObject



20
21
22
23
24
# File 'logs/substitute_string_property.rb', line 20

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

Instance Method Details

#to_jsiiObject



26
27
28
29
30
31
32
# File 'logs/substitute_string_property.rb', line 26

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