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:
IEnvironmentAware,IResource,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:13.257Z")
@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 ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe property injection ID for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransformer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedTransformer(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.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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.
-