1 Answer
- Newest
- Most votes
- Most comments
0
My first thought is that https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax shows the anything-but syntax as being embedded in an array:
"Weather": [ { "anything-but": [ "Raining" ] } ]
If that doesn't fix it, what I'd try next is something that is definitely an "AND", given there don't seem to be any examples out there using anything-but with multiple items to confirm how it works.
https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax shows that, in general, items in a filter array act as "OR", so maybe what you tried is acting like:
"anything-but": ["x"] OR "anything-but": ["y"] OR ...
which will always be true.
Maybe try something like:
"FOO": {
"SS": [
{"anything-but": ["x"]},
{"anything-but": ["y"]},
{"anything-but": ["z"]}
]
}
Relevant content
- asked 2 years ago
- asked 4 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago