基于“或”条件的 AWS SNS 消息过滤

Ara*_*nde 5 filter amazon-web-services amazon-sns

SNS 消息过滤页面上有一个 AND/OR 逻辑的例子如下

AND 逻辑:通过使用多个属性名称(键)来应用 AND 逻辑。例如,政策:

{
    "customer_interests": ["rugby"],
    "price_usd": [{"numeric":[">", 100]}]
}
Run Code Online (Sandbox Code Playgroud)

OR 逻辑:通过为属性名称分配多个值来应用 OR 逻辑。例如,策略属性:

"customer_interests": ["rugby", "football", "baseball"]
Run Code Online (Sandbox Code Playgroud)

但是,我们如何为多个属性名称(键)应用“或”逻辑

例如,如果我想更改第一个示例,政策是什么

(customer_interests="rugby" AND price_usd > 100)

(customer_interests="rugby" 或 price_usd > 100)

Ota*_*ira 1

自 2023 年 11 月起,您现在可以在 SNS 过滤策略中使用 \xe2\x80\x9cOR\xe2\x80\x9d 运算符。更多信息:https://aws.amazon.com/about-aws/whats-new/2023/11/amazon-sns-message-additional-filtering-operators/

\n