Skip to content
v2.278.0

ProcessorDeleteKeysProperty Struct ​

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.

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 processorDeleteKeysProperty: logs.ProcessorDeleteKeysProperty = {
  withKeys: ['withKeys'],
};
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
// 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();
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" }
};
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 ​

withKeysstring[]with_keystyping.List[str]withKeysList<String>WithKeysstring[]WithKeys*[]*string required #
A list of keys to delete.