Class: AWSCDK::Logs::RenameKeysProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
logs/rename_keys_property.rb

Overview

Use this processor to rename keys in a log event.

For more information about this processor including examples, see renameKeys in the CloudWatch Logs User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entries:) ⇒ RenameKeysProperty

Returns a new instance of RenameKeysProperty.

Parameters:



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

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

Instance Attribute Details

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

An array of RenameKeyEntry objects, where each object contains information about one key to rename.



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

def entries
  @entries
end

Class Method Details

.jsii_propertiesObject



20
21
22
23
24
# File 'logs/rename_keys_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/rename_keys_property.rb', line 26

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