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
preguntada hace 7 meses703 visualizaciones
2 Respuestas
2
Respuesta aceptada

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
EXPERTO
respondido hace 7 meses
profile picture
EXPERTO
revisado hace 7 meses
profile picture
EXPERTO
revisado hace 7 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas