(aws-sam): DestinationConfig contains onSuccess property even though it's not part of SAM spec #16739
Labels
@aws-cdk/aws-sam
Related to AWS Serverless Application Model
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
The SAM spec specifies a property called OnSuccess here (
aws-cdk/packages/@aws-cdk/cfnspec/spec-source/000_sam.spec.json
Line 495 in 5d0954a
Reproduction Steps
What did you expect to happen?
I am trying to create a FUnction that gets triggerred from DDB stream. THe above code compiled in v1.106.0
What actually happened?
The code doesn't compile in v1.122.0. The error that I get is
Environment
Other
The DestinationConfig class is in sam.generated.ts which is generated from 000_sam_spec.json.
I'm not sure how the sam spec gets checked in, but it seems the sam_spec is incorrect
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: