-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-stepfunctions-tasks: addCatch does not support resultPath: DISCARD
#26760
Comments
It looks like the correct code to use is |
Thanks for reporting the issue I couldn't find anywhere that we use this variable
I'm not sure if this constant has any legitimate use cases - I can't find anywhere it's being used within our codebase, and we only document |
…e JsonPath.DISCARD in docs (#26770) The `DISCARD` variable is removed because it unused. The docs are updated to be more clear to use `JsonPath.DISCARD` for `CatchProps` and `ChoiceProps`. Closes #26760 . ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
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: