SNS subscription filter policy for message body that is not JSON

0

Is it possible to filter an SNS message in an SNS subscription filter policy for a message body that is just a string and not JSON?

Thanks,

David

David T
已提问 7 个月前706 查看次数
2 回答
2
已接受的回答

Hello.

The message to filter must be a JSON payload.
https://repost.aws/knowledge-center/sns-troubleshoot-message-filtering

  • Check that you are passing the correct message attributes.
  • For message body filtering, check that the message payload is a well-formed JSON object. For more information, see this blog for payload-based message filtering.
  • Check the SNS Amazon CloudWatch metrics shown here to verify if the data point is populated for them:
profile picture
专家
已回答 7 个月前
profile picture
专家
已审核 7 个月前
profile picture
专家
已审核 7 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则