interface ResultWriterProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.ResultWriterProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#ResultWriterProps |
Java | software.amazon.awscdk.services.stepfunctions.ResultWriterProps |
Python | aws_cdk.aws_stepfunctions.ResultWriterProps |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions » ResultWriterProps |
Interface for Result Writer configuration properties.
Example
import * as s3 from 'aws-cdk-lib/aws-s3';
// create a bucket
const bucket = new s3.Bucket(this, 'Bucket');
const distributedMap = new sfn.DistributedMap(this, 'Distributed Map State', {
resultWriter: new sfn.ResultWriter({
bucket: bucket,
prefix: 'my-prefix',
})
});
distributedMap.itemProcessor(new sfn.Pass(this, 'Pass State'));
Properties
Name | Type | Description |
---|---|---|
bucket | IBucket | S3 Bucket in which to save Map Run results. |
prefix? | string | S3 prefix in which to save Map Run results. |
bucket
Type:
IBucket
S3 Bucket in which to save Map Run results.
prefix?
Type:
string
(optional, default: No prefix)
S3 prefix in which to save Map Run results.