Skip to content
v2.274.0

ResultWriterV2Props Struct ​

Interface for Result Writer configuration props.

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 ​

bucketIBucketbucketIBucketbucketIBucketBucketIBucketBucketIBucket= specify a bucket#
S3 Bucket in which to save Map Run results.
bucketNamePathstringbucket_name_pathstrbucketNamePathStringBucketNamePathstringBucketNamePath*string= no bucket path#
S3 bucket name in which to save Map Run results, as JsonPath.
prefixstringprefixstrprefixStringPrefixstringPrefix*string= No prefix#
S3 prefix in which to save Map Run results.
writerConfigWriterConfigwriter_configWriterConfigwriterConfigWriterConfigWriterConfigWriterConfigWriterConfigWriterConfig= Specify both Transformation and …#
Configuration to format the output of the Child Workflow executions.
default

Default: Specify both Transformation and OutputType