Skip to content

(aws-stepfunctions): Add missing intrinsic function States.JsonMerge #22068

@gkkachi

Description

@gkkachi

Describe the feature

Support for the intrinsic function States.JsonMerge .
AWS Documentation: https://docs.amazonaws.cn/en_us/step-functions/latest/dg/amazon-states-language-intrinsic-functions.html#asl-intrsc-func-json-manipulate

Use Case

Obvious

Proposed Solution

Add JsonPath.jsonMerge() here:
https://github.com/aws/aws-cdk/blob/main/packages/@aws-cdk/aws-stepfunctions/lib/fields.ts

Other Information

We could use States.JsonMerge like below, but syntax check fails when running cdk deploy .
We have to change some code to make it passed.

TaskInput.fromJsonPathAt('States.JsonMerge($.json1, $.json2, false)')

Acknowledgements

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

CDK version used

2.41.0

Environment details (OS name and version, etc.)

macOS Big Sur 11.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-stepfunctionsRelated to AWS StepFunctionseffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions