Class: AWSCDK::Logs::CopyValueProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::CopyValueProperty
- 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
-
#entries ⇒ Array<AWSCDK::Logs::CopyValueEntryProperty>
readonly
List of sources and target to copy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(entries:) ⇒ CopyValueProperty
constructor
A new instance of CopyValueProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(entries:) ⇒ CopyValueProperty
Returns a new instance of CopyValueProperty.
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
#entries ⇒ Array<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_properties ⇒ Object
24 25 26 27 28 |
# File 'logs/copy_value_property.rb', line 24 def self.jsii_properties { :entries => "entries", } end |
Instance Method Details
#to_jsii ⇒ Object
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 |