Class: AWSCDK::Logs::CfnTransformer::AddKeysProperty

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entries:) ⇒ AddKeysProperty

Returns a new instance of AddKeysProperty.

Parameters:



576
577
578
579
# File 'logs/cfn_transformer.rb', line 576

def initialize(entries:)
  @entries = entries
  Jsii::Type.check_type(@entries, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5DZm5UcmFuc2Zvcm1lci5BZGRLZXlFbnRyeVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "entries")
end

Instance Attribute Details

#entriesAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Logs::CfnTransformer::AddKeyEntryProperty> (readonly)

An array of objects, where each object contains the information about one key to add to the log event.



585
586
587
# File 'logs/cfn_transformer.rb', line 585

def entries
  @entries
end

Class Method Details

.jsii_propertiesObject



587
588
589
590
591
# File 'logs/cfn_transformer.rb', line 587

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

Instance Method Details

#to_jsiiObject



593
594
595
596
597
598
599
# File 'logs/cfn_transformer.rb', line 593

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