Class: AWSCDK::Logs::CfnTransformer::CopyValueProperty

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

Overview

This processor copies values within a log event.

You can also use this processor to add metadata to log events by copying the values of the following metadata keys into the log events: @logGroupName , @logGroupStream , @accountId , @regionName .

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:



668
669
670
671
# File 'logs/cfn_transformer.rb', line 668

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

Instance Attribute Details

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

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



677
678
679
# File 'logs/cfn_transformer.rb', line 677

def entries
  @entries
end

Class Method Details

.jsii_propertiesObject



679
680
681
682
683
# File 'logs/cfn_transformer.rb', line 679

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

Instance Method Details

#to_jsiiObject



685
686
687
688
689
690
691
# File 'logs/cfn_transformer.rb', line 685

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