class ResultWriter
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.StepFunctions.ResultWriter |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctions#ResultWriter |
Java | software.amazon.awscdk.services.stepfunctions.ResultWriter |
Python | aws_cdk.aws_stepfunctions.ResultWriter |
TypeScript (source) | aws-cdk-lib » aws_stepfunctions » ResultWriter |
Configuration for writing Distributed Map state results to S3.
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', {
itemReader: new sfn.S3JsonItemReader({
bucket: bucket,
key: 'my-key.json',
}),
resultWriter: new sfn.ResultWriter({
bucket: bucket,
prefix: 'my-prefix',
})
});
distributedMap.itemProcessor(new sfn.Pass(this, 'Pass State'));
Initializer
new ResultWriter(props: ResultWriterProps)
Parameters
- props
Result
Writer Props
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.
Methods
Name | Description |
---|---|
provide | Compile policy statements to provide relevent permissions to the state machine. |
render() | Render ResultWriter in ASL JSON format. |
PolicyStatements()
providepublic providePolicyStatements(): PolicyStatement[]
Returns
Compile policy statements to provide relevent permissions to the state machine.
render()
public render(): any
Returns
any
Render ResultWriter in ASL JSON format.