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 Answer
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
answered a month ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions