# ResultWriterV2Props

Interface for Result Writer configuration props.

Extends: ResultWriterV2Props
Used as props by: ResultWriterV2

- Source: [`aws-stepfunctions/lib/states/distributed-map/result-writer.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-stepfunctions/lib/states/distributed-map/result-writer.ts#L28)
- Type last changed: v2.196.0 · 16 May 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'));
```

## Properties

- `bucket`: [IBucket](/cdk/api/v2/docs/aws-cdk-lib.aws_s3.IBucket.html) — S3 Bucket in which to save Map Run results.

  **Default:** specify a bucket

- `bucketNamePath`: string — S3 bucket name in which to save Map Run results, as JsonPath.

  **Default:** no bucket path

- `prefix`: string — S3 prefix in which to save Map Run results.

  **Default:** No prefix

- `writerConfig`: [WriterConfig](/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions.WriterConfig.html) — Configuration to format the output of the Child Workflow executions.

  **Default:** Specify both Transformation and OutputType
