Interface ParseJSONProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ParseJSONProperty.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:13.229Z")
@Stability(Stable)
public interface ParseJSONProperty
extends software.amazon.jsii.JsiiSerializable
This processor parses log events that are in JSON format.
It can extract JSON key-value pairs and place them under a destination that you specify. Additionally, because you must have at least one parse-type processor in a transformer, you can use ParseJSON as that processor for JSON-format logs, so that you can also apply other processors, such as mutate processors, to these logs. For more information about this processor including examples, see parseJSON 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.*;
ParseJSONProperty parseJSONProperty = ParseJSONProperty.builder()
.destination("destination")
.source("source")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forParseJSONPropertystatic final classAn implementation forParseJSONProperty -
Method Summary
Modifier and TypeMethodDescriptionstatic ParseJSONProperty.Builderbuilder()default StringThe location to put the parsed key value pair into.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 location to put the parsed key value pair into.Default: - Placed under root of log event
-
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
ParseJSONProperty.BuilderofParseJSONProperty
-