Class Transformer

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.logs.Transformer
All Implemented Interfaces:
IResource, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-07-24T11:33:17.374Z") @Stability(Stable) public class Transformer extends Resource
Represent the L2 construct for the AWS::Logs::Transformer CloudFormation resource.

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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for Transformer.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.constructs.IConstruct

    software.constructs.IConstruct.Jsii$Default

    Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource

    IResource.Jsii$Default
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The property injection ID for this resource class.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Transformer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Transformer(software.amazon.jsii.JsiiObjectRef objRef)
     
     
    Transformer(software.constructs.Construct scope, String id, TransformerProps props)
    The Transformer L2 construct that represents AWS::Logs::Transformer CFN resource.
  • Method Summary

    Methods inherited from class software.constructs.Construct

    getNode, isConstruct, toString

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface software.constructs.IConstruct

    getNode

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Stable) public static final String PROPERTY_INJECTION_ID
      The property injection ID for this resource class.

      Used by the CDK frameworks for managing resource lifecycle.

  • Constructor Details

    • Transformer

      protected Transformer(software.amazon.jsii.JsiiObjectRef objRef)
    • Transformer

      protected Transformer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Transformer

      @Stability(Stable) public Transformer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull TransformerProps props)
      The Transformer L2 construct that represents AWS::Logs::Transformer CFN resource.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.