I want to set up a rule in Node for AWS Eventbridge that filters for all the name values in detail that have NOT the prefix 'notWantedPrefixSample'. I'm not sure how to code this. Anybody has an idea? thanks in advance! https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html
Here an example if I would filter for that it has the prefix: (so basically I want the oposite) Would I just use a negation (!) before the brackets?
eventPattern: {
source: ['sourceSample'],
detail: {
name: [{ prefix: 'notWantedPrefixSample' }]
}
}