(events rule): Event pattern is not valid. Reason: suffix match pattern must be a string #32492
Labels
@aws-cdk/aws-events
Related to CloudWatch Events
bug
This issue is a bug.
needs-reproduction
This issue needs reproduction.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
Match.suffix method seems to be generating an invalid event patter
Here's the example:
Once the code is deployed the result is the following:
prefix works fine and the result is {"prefix": "created"} however, suffix is invalid as the result is {"suffix":["created"]}
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
the event patter should be {"suffix":"created"}
Current Behavior
the event pattern is {"suffix":["created"]}
Reproduction Steps
cdk deploy
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.172.0
Framework Version
No response
Node.js Version
v20.12.2
OS
Mac OS 14.6.1
Language
TypeScript
Language Version
5.6.3
Other information
No response
The text was updated successfully, but these errors were encountered: