aws-pipes-alpha: InputTransformation
in Pipe
should automatically add expression delimiters
#32416
Labels
@aws-cdk/aws-pipes
Related to aws-pipes-*
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
When using the AWS Pipes L2 construct, there's an inconsistency in how JSON paths are handled between
queryStringParameters
andinputTransformation
.For
queryStringParameters
, JSON paths work directly:However, for
inputTransformation
, we need to manually add expression delimiters (<>
) around JSON paths:This creates an inconsistent developer experience and increases the chance of errors if developers forget to add the delimiters.
Suggested Solution
The L2 construct should automatically add the required expression delimiters (
<>
) around JSON paths ininputTransformation
objects, similar to howqueryStringParameters
handles paths directly.Example of desired API:
The L2 construct could detect JSON paths (starting with
$.
) and automatically wrap them in expression delimiters, improving developer experience and preventing errors from forgotten delimiters.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
See above.
Current Behavior
See above.
Reproduction Steps
See above.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.172.0
Framework Version
No response
Node.js Version
22.11.0
OS
Ubuntu 24.04
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: