Skip to content
Advertisement

Event Pattern rule “anything-but” using CDK

I am trying to add the following Event Pattern to specific rule on Event Bridge

JavaScript

I tryed to use this python code

JavaScript

but the “source” does not accept a json, only string array:

JavaScript

So I decided to try using dumps:

JavaScript

but does not work as expected, with result:

JavaScript

Is there any way to add “anything-but” rule in source, or this is a cdk limitation?

Advertisement

Answer

Just figure out, this is a limitation in current version of CDK.

It should be fixed with this PR from CDK Team: https://github.com/aws/aws-cdk/pull/21310

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement