# CopyValueEntryProperty

This object defines one value to be copied with the [copyValue](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#CloudWatch-Logs-Transformation-copyValue) processor.

- Source: Generated code
- Type last changed: v2.174.0 · 4 Jan 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 copyValueEntryProperty: logs.CfnTransformer.CopyValueEntryProperty = {
  source: 'source',
  target: 'target',

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

## Properties

- `overwriteIfExists`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether to overwrite the value if the destination key already exists.

  If you omit this, the default is `false` .

- `source`: string (required) — The key to copy.

- `target`: string (required) — The key of the field to copy the value to.
