'Is there a way to filter with AWS SNS filter policies from the message body to SQS queues?

I have a general question about SNS filter policies. I know that the filter policies filter based on the Message Attributes. If we wanted to filter based on the body, is there a work around to do so?

The SNS topic will be delivering different types of data to SQS queues based on the filter policies.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source