Interface TransformerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TransformerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:13.257Z")
@Stability(Stable)
public interface TransformerProps
extends software.amazon.jsii.JsiiSerializable
The Resource properties for AWS::Logs::Transformer resource.
This interface defines all configuration options for the CfnTransformer construct.
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 classA builder forTransformerPropsstatic final classAn implementation forTransformerProps -
Method Summary
Modifier and TypeMethodDescriptionstatic TransformerProps.Builderbuilder()Existing log group that you want to associate with this transformer.List of processors in a transformer.Name of the transformer.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLogGroup
Existing log group that you want to associate with this transformer. -
getTransformerConfig
List of processors in a transformer. -
getTransformerName
Name of the transformer. -
builder
- Returns:
- a
TransformerProps.BuilderofTransformerProps
-