Interface JsonMutatorProps
- All Superinterfaces:
BaseProcessorProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
JsonMutatorProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-07-24T11:33:17.295Z")
@Stability(Stable)
public interface JsonMutatorProps
extends software.amazon.jsii.JsiiSerializable, BaseProcessorProps
Properties for creating JSON mutator processors.
Example:
// Create a log group LogGroup logGroup = new LogGroup(this, "MyLogGroup"); // Create a JSON parser processor ParserProcessor jsonParser = ParserProcessor.Builder.create() .type(ParserProcessorType.JSON) .build(); // Create a processor to add keys JsonMutatorProcessor addKeysProcessor = JsonMutatorProcessor.Builder.create() .type(JsonMutatorType.ADD_KEYS) .addKeysOptions(AddKeysProperty.builder() .entries(List.of(AddKeyEntryProperty.builder() .key("metadata.transformed_in") .value("CloudWatchLogs") .build())) .build()) .build(); // Create a transformer with these processors // Create a transformer with these processors Transformer.Builder.create(this, "Transformer") .transformerName("MyTransformer") .logGroup(logGroup) .transformerConfig(List.of(jsonParser, addKeysProcessor)) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forJsonMutatorProps
static final class
An implementation forJsonMutatorProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonMutatorProps.Builder
builder()
default AddKeysProperty
Options for adding keys.default CopyValueProperty
Options for copying values.default ProcessorDeleteKeysProperty
Keys to delete.default ListToMapProperty
Options for converting lists to maps.default MoveKeysProperty
Options for moving keys.default RenameKeysProperty
Options for renaming keys.getType()
The type of JSON mutation operation.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The type of JSON mutation operation. -
getAddKeysOptions
Options for adding keys.Required when type is ADD_KEYS.
Default: - No adding keys processor is created if props not set
-
getCopyValueOptions
Options for copying values.Required when type is COPY_VALUE.
Default: - No copy value processor is created if props not set
-
getDeleteKeysOptions
Keys to delete.Required when type is DELETE_KEYS.
Default: - No delete key processor is created if props not set
-
getListToMapOptions
Options for converting lists to maps.Required when type is LIST_TO_MAP.
Default: - No list-to-map processor is created if props not set
-
getMoveKeysOptions
Options for moving keys.Required when type is MOVE_KEYS.
Default: - No move key processor is created if props not set
-
getRenameKeysOptions
Options for renaming keys.Required when type is RENAME_KEYS.
Default: - No rename key processor is created if props not set
-
builder
- Returns:
- a
JsonMutatorProps.Builder
ofJsonMutatorProps
-