# TransformerProps

The Resource properties for AWS::Logs::Transformer resource.

This
interface defines all configuration options for the CfnTransformer construct.

Extends: TransformerProps
Used as props by: Transformer

- Source: [`aws-logs/lib/transformer.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-logs/lib/transformer.ts#L804)
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

```ts

// Create a log group
const logGroup = new logs.LogGroup(this, 'MyLogGroup');

// Create a JSON parser processor
const jsonParser = new logs.ParserProcessor({
  type: logs.ParserProcessorType.JSON
});

// Create a processor to add keys
const addKeysProcessor = new logs.JsonMutatorProcessor({
  type: logs.JsonMutatorType.ADD_KEYS,
  addKeysOptions: {
    entries: [{
      key: 'metadata.transformed_in',
      value: 'CloudWatchLogs'
    }]
  }
});

// Create a transformer with these processors
new logs.Transformer(this, 'Transformer', {
  transformerName: 'MyTransformer',
  logGroup: logGroup,
  transformerConfig: [jsonParser, addKeysProcessor]
});
```

## Properties

- `logGroup`: [ILogGroupRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_logs.ILogGroupRef.html) (required) — Existing log group that you want to associate with this transformer.

- `transformerConfig`: [IProcessor](/cdk/api/v2/docs/aws-cdk-lib.aws_logs.IProcessor.html)[] (required) — List of processors in a transformer.

- `transformerName`: string (required) — Name of the transformer.
