# AddKeyEntryProperty

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

- Source: [`aws-logs/lib/transformer.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-logs/lib/transformer.ts#L676)
- Type last changed: v2.207.0 · 24 Jul 2025

## 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

- `key`: string (required) — The key of the new entry to be added to the log event.

- `overwriteIfExists`: boolean = false — Specifies whether to overwrite the value if the key already exists.

- `value`: string (required) — The value of the new entry to be added to the log event.
