AWS SNS Message Attributes for message filtering

AWS SNS supports message filtering using a message attribute json which is published to the topic. If you are using the built in AWS SNS type destination, is there a way to add the message attributes into the trigger action? Can this only be done via a custom webhook?