Skip to content
v2.273.0

AddKeyEntryProperty Struct ​

This object defines one key that will be added with the addKeys processor.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const addKeyEntryProperty: logs.AddKeyEntryProperty = {
  key: 'key',
  value: 'value',

  // the properties below are optional
  overwriteIfExists: false,
};

Properties ​

keystringkeystrkeyStringKeystringKey*stringrequired#
The key of the new entry to be added to the log event.
overwriteIfExistsbooleanoverwrite_if_existsbooloverwriteIfExistsBooleanOverwriteIfExistsboolOverwriteIfExists*bool= false#
Specifies whether to overwrite the value if the key already exists.
valuestringvaluestrvalueStringValuestringValue*stringrequired#
The value of the new entry to be added to the log event.