Skip to content
v2.278.0

DeleteKeysProperty ​

Struct External

This processor deletes entries from a log event. These entries are key-value pairs.

For more information about this processor including examples, see deleteKeys 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 deleteKeysProperty: logs.CfnTransformer.DeleteKeysProperty = {
  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

delete_keys_property = logs.CfnTransformer.DeleteKeysProperty(
    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.*;

DeleteKeysProperty deleteKeysProperty = DeleteKeysProperty.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 deleteKeysProperty = new DeleteKeysProperty {
    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"

deleteKeysProperty := &DeleteKeysProperty{
	WithKeys: []*string{
		jsii.String("withKeys"),
	},
}

Properties ​

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