Class to extract information from SNS when implementing endpoint