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
posta 7 mesi fa713 visualizzazioni
2 Risposte
2
Risposta accettata

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
ESPERTO
con risposta 7 mesi fa
profile picture
ESPERTO
verificato 7 mesi fa
profile picture
ESPERTO
verificato 7 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande