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();
 
  • Method Details

    • getType

      @Stability(Stable) @NotNull JsonMutatorType getType()
      The type of JSON mutation operation.
    • getAddKeysOptions

      @Stability(Stable) @Nullable default AddKeysProperty getAddKeysOptions()
      Options for adding keys.

      Required when type is ADD_KEYS.

      Default: - No adding keys processor is created if props not set

    • getCopyValueOptions

      @Stability(Stable) @Nullable default CopyValueProperty getCopyValueOptions()
      Options for copying values.

      Required when type is COPY_VALUE.

      Default: - No copy value processor is created if props not set

    • getDeleteKeysOptions

      @Stability(Stable) @Nullable default ProcessorDeleteKeysProperty getDeleteKeysOptions()
      Keys to delete.

      Required when type is DELETE_KEYS.

      Default: - No delete key processor is created if props not set

    • getListToMapOptions

      @Stability(Stable) @Nullable default ListToMapProperty 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

      @Stability(Stable) @Nullable default MoveKeysProperty getMoveKeysOptions()
      Options for moving keys.

      Required when type is MOVE_KEYS.

      Default: - No move key processor is created if props not set

    • getRenameKeysOptions

      @Stability(Stable) @Nullable default RenameKeysProperty getRenameKeysOptions()
      Options for renaming keys.

      Required when type is RENAME_KEYS.

      Default: - No rename key processor is created if props not set

    • builder

      @Stability(Stable) static JsonMutatorProps.Builder builder()
      Returns:
      a JsonMutatorProps.Builder of JsonMutatorProps