# Transformation

The transformation to be applied to the Output of the Child Workflow executions.

- Source: [`aws-stepfunctions/lib/states/distributed-map/result-writer.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-stepfunctions/lib/states/distributed-map/result-writer.ts#L60)
- Type last changed: v2.190.0 · 17 Apr 2025

## Example

```ts
import * as s3 from 'aws-cdk-lib/aws-s3';

// create a bucket
const bucket = new s3.Bucket(this, 'Bucket');

// create a WriterConfig

const distributedMap = new sfn.DistributedMap(this, 'Distributed Map State', {
  resultWriterV2: new sfn.ResultWriterV2({
    bucket: bucket,
    prefix: 'my-prefix',
    writerConfig: {
      outputType: sfn.OutputType.JSONL,
      transformation: sfn.Transformation.NONE,
    },
  })
});
distributedMap.itemProcessor(new sfn.Pass(this, 'Pass State'));
```

## Members

| Member | Description |
| --- | --- |
| `NONE` | Returns the output of the child workflow executions unchanged, in addition to the workflow metadata. |
| `COMPACT` | Returns the output of the child workflow executions. |
| `FLATTEN` | Returns the output of the child workflow executions. |

## Referenced by

- [`WriterConfig`](/v2/docs/aws-cdk-lib.aws_stepfunctions.WriterConfig).transformation
- [`WriterConfigProps`](/v2/docs/aws-cdk-lib.aws_stepfunctions.WriterConfigProps).transformation
