Class: AWSCDK::Logs::AddKeysProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::AddKeysProperty
- Defined in:
- logs/add_keys_property.rb
Overview
This processor adds new key-value pairs to the log event.
For more information about this processor including examples, see addKeys in the CloudWatch Logs User Guide.
Instance Attribute Summary collapse
-
#entries ⇒ Array<AWSCDK::Logs::AddKeyEntryProperty>
readonly
An array of objects, where each object contains information about one key to add to the log event.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(entries:) ⇒ AddKeysProperty
constructor
A new instance of AddKeysProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(entries:) ⇒ AddKeysProperty
Returns a new instance of AddKeysProperty.
10 11 12 13 |
# File 'logs/add_keys_property.rb', line 10 def initialize(entries:) @entries = entries.is_a?(Array) ? entries.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::Logs::AddKeyEntryProperty.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : entries Jsii::Type.check_type(@entries, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19sb2dzLkFkZEtleUVudHJ5UHJvcGVydHkifSwia2luZCI6ImFycmF5In19")), "entries") end |
Instance Attribute Details
#entries ⇒ Array<AWSCDK::Logs::AddKeyEntryProperty> (readonly)
An array of objects, where each object contains information about one key to add to the log event.
18 19 20 |
# File 'logs/add_keys_property.rb', line 18 def entries @entries end |
Class Method Details
.jsii_properties ⇒ Object
20 21 22 23 24 |
# File 'logs/add_keys_property.rb', line 20 def self.jsii_properties { :entries => "entries", } end |
Instance Method Details
#to_jsii ⇒ Object
26 27 28 29 30 31 32 |
# File 'logs/add_keys_property.rb', line 26 def to_jsii result = {} result.merge!({ "entries" => @entries, }) result.compact end |