-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
(events): Unable to use content based filtering patterns in detailType #30220
Comments
Thank you for your PR. |
We hit to similar issue but with
|
* Suppressed with `@ts-ignore` for now as EventBridge able to accept the rule syntax. See aws/aws-cdk#30220
* Suppressed with `@ts-ignore` for now as EventBridge able to accept the rule syntax. See aws/aws-cdk#30220
Same issue here, except we use the java cdk (through Kotlin) and this is thus not resolvable at all due to the typing. On the typescript side we were able to resolve it with |
Same issue for me as well, I am trying to create detail-type filtering like that and I got the same limitation:
+1 vote for this feature 💯 |
Describe the bug
When using the L2 construct for EventBridge Rules a type failure occurs when attempting to create an event bridge rule that uses content based filtering patterns. Requiring the use of a trapdoor in order to achieve the desired results.
Expected Behavior
Content based filtering patterns are supported in an events detailType
Current Behavior
Type '{ prefix: string; }' is not assignable to type 'string'
Reproduction Steps
Possible Solution
See #30222
Using a trapdoor does provide a work around
Additional Information/Context
No response
CDK CLI Version
2.141.0
Framework Version
No response
Node.js Version
18.18.0
OS
OSX
Language
TypeScript
Language Version
Typescript 5.4.0
Other information
No response
The text was updated successfully, but these errors were encountered: