Skip to content

(aws-stepfunctions): Add support for new fields WriterConfig in the ResultWriter for DistributedMap #33772

@vishalsatam

Description

@vishalsatam

Describe the feature

Step Functions introduced new properties under the ResultWriter field. Namely Transformation that is an enum with values NONE, FLATTEN, COMPACT and also OutputType which can be JSONL, JSON

Blog - https://aws.amazon.com/blogs/compute/introducing-jsonl-support-with-step-functions-distributed-map/

Related Documentation - https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultwriter.html#input-output-resultwriter-field-contents

I found a related issue that handles the addition of JSONL to the InputType - #33601

Use Case

Enable CDK users to utilize the new ResultWriter fields for Distributed Map.

Proposed Solution

Introduce a new enums OutputType and Transformation

Create a new class WriterConfig and add helper functions to add these new fields to it.

Add helper functions inside the ResultWriter class to add WriterConfig to it.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.1002.0

Environment details (OS name and version, etc.)

Mac, 14.7.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions