Class: AWSCDK::Logs::CfnTransformer::RenameKeysProperty

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

Overview

Use this processor to rename keys in a log event.

For more information about this processor including examples, see renameKeys in the CloudWatch Logs User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entries:) ⇒ RenameKeysProperty

Returns a new instance of RenameKeysProperty.

Parameters:



1925
1926
1927
1928
# File 'logs/cfn_transformer.rb', line 1925

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

Instance Attribute Details

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

An array of RenameKeyEntry objects, where each object contains the information about a single key to rename.



1934
1935
1936
# File 'logs/cfn_transformer.rb', line 1934

def entries
  @entries
end

Class Method Details

.jsii_propertiesObject



1936
1937
1938
1939
1940
# File 'logs/cfn_transformer.rb', line 1936

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

Instance Method Details

#to_jsiiObject



1942
1943
1944
1945
1946
1947
1948
# File 'logs/cfn_transformer.rb', line 1942

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