aws-stepfunctions-tasks: addCatch does not support resultPath: DISCARD
#26760
Labels
@aws-cdk/aws-stepfunctions-tasks
bug
This issue is a bug.
documentation
This is a problem with documentation.
effort/small
Small work item – less than a day of effort
good first issue
Related to contributions. See CONTRIBUTING.md
p2
Describe the bug
The LambdaInvoke package allows for an
addCatch
which is documented as allowing aCatchProps
to include aresultPath
special value ofDISCARD
HOWEVER, when trying to add a catch with this special value of
DISCARD
for theresultPath
it tosses an error:Expected Behavior
The step function definition should use the special
null
value as the resultPath when passed the specialDISCARD
value.Current Behavior
Attempted deploy causes the CDK to fail during validation:
Reproduction Steps
then run
cdk synth
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.91.0 (build eea12ea)
Framework Version
No response
Node.js Version
v18.17.0
OS
Darwin razorcrest.local 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun 8 22:22:23 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6020 arm64
Language
Typescript
Language Version
TypeScript (5.1.6)
Other information
No response
The text was updated successfully, but these errors were encountered: