1 回答
- 最新
- 投票最多
- 评论最多
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"]}
]
}
相关内容
- AWS 官方已更新 1 年前