Interface ParseKeyValueProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ParseKeyValueProperty.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:13.229Z")
@Stability(Stable)
public interface ParseKeyValueProperty
extends software.amazon.jsii.JsiiSerializable
This processor parses a specified field in the original log event into key-value pairs.
For more information about this processor including examples, see parseKeyValue in the CloudWatch Logs User Guide.
Example:
// 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.*;
ParseKeyValueProperty parseKeyValueProperty = ParseKeyValueProperty.builder()
.destination("destination")
.fieldDelimiter(KeyValuePairDelimiter.AMPERSAND)
.keyPrefix("keyPrefix")
.keyValueDelimiter(KeyValueDelimiter.EQUAL)
.nonMatchValue("nonMatchValue")
.overwriteIfExists(false)
.source("source")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forParseKeyValuePropertystatic final classAn implementation forParseKeyValueProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe destination field to put the extracted key-value pairs into.default KeyValuePairDelimiterThe field delimiter string that is used between key-value pairs in the original log events.default StringIf you want to add a prefix to all transformed keys, specify it here.default KeyValueDelimiterThe delimiter string to use between the key and value in each pair in the transformed log event.default StringA value to insert into the value field in the result, when a key-value pair is not successfully split.default BooleanSpecifies whether to overwrite the value if the destination key already exists.default StringPath to the field in the log event that will be parsed.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDestination
The destination field to put the extracted key-value pairs into.Default: - Places at the root of the JSON input.
-
getFieldDelimiter
The field delimiter string that is used between key-value pairs in the original log events.Default: KeyValuePairDelimiter.AMPERSAND
-
getKeyPrefix
If you want to add a prefix to all transformed keys, specify it here.Default: - No prefix is added to the keys.
-
getKeyValueDelimiter
The delimiter string to use between the key and value in each pair in the transformed log event.Default: KeyValueDelimiter.EQUAL
-
getNonMatchValue
A value to insert into the value field in the result, when a key-value pair is not successfully split.Default: - No values is inserted when split is not successful.
-
getOverwriteIfExists
Specifies whether to overwrite the value if the destination key already exists.Default: false
-
getSource
Path to the field in the log event that will be parsed.Use dot notation to access child fields.
Default: '@message'
-
builder
- Returns:
- a
ParseKeyValueProperty.BuilderofParseKeyValueProperty
-