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
gefragt vor 7 Monaten713 Aufrufe
2 Antworten
2
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 7 Monaten
profile picture
EXPERTE
überprüft vor 7 Monaten
profile picture
EXPERTE
überprüft vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen