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