Class: AWSCDK::Logs::CopyValueProperty

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

Overview

Copy Value processor, copies values from source to target for each entry.

This processor copies values within a log event. You can also use this processor to add metadata to log events by copying values from metadata keys. For more information about this processor including examples, see copyValue in the CloudWatch Logs User Guide.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entries:) ⇒ CopyValueProperty

Returns a new instance of CopyValueProperty.

Parameters:



12
13
14
15
# File 'logs/copy_value_property.rb', line 12

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

Instance Attribute Details

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

List of sources and target to copy.

An array of CopyValueEntry objects, where each object contains information about one field value to copy.



22
23
24
# File 'logs/copy_value_property.rb', line 22

def entries
  @entries
end

Class Method Details

.jsii_propertiesObject



24
25
26
27
28
# File 'logs/copy_value_property.rb', line 24

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

Instance Method Details

#to_jsiiObject



30
31
32
33
34
35
36
# File 'logs/copy_value_property.rb', line 30

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