SNS FilterPolicy with LIKE ou REGEX.

0

Can I somehow create a SNS subscription with FilterPolicy using LIKE or REGEX expression? { "attributeSample": { "like": "*textinside*" } }

It would allow messages with "textinside" anywhere in the "attributeSample" attribute. Thanks.

1 réponse
1

Hello.

As of March 2024, SNS subscription filters do not include LIKE or REGEX.
Partial matches are not possible, but prefix matches and suffix matches are possible.
https://docs.aws.amazon.com/sns/latest/dg/string-value-matching.html#string-equals-ignore

profile picture
EXPERT
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions