# ProcessorDeleteKeysProperty

This processor adds new key-value pairs to the log event.

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

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

## Example

TypeScript:

```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 processorDeleteKeysProperty: logs.ProcessorDeleteKeysProperty = {
  withKeys: ['withKeys'],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs

processor_delete_keys_property = logs.ProcessorDeleteKeysProperty(
    with_keys=["withKeys"]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;

ProcessorDeleteKeysProperty processorDeleteKeysProperty = ProcessorDeleteKeysProperty.builder()
        .withKeys(List.of("withKeys"))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;

var processorDeleteKeysProperty = new ProcessorDeleteKeysProperty {
    WithKeys = new [] { "withKeys" }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

processorDeleteKeysProperty := &ProcessorDeleteKeysProperty{
	WithKeys: []string{
		jsii.String("withKeys"),
	},
}
```

## Properties

- `withKeys`: string[] (required) — A list of keys to delete.
