I am attempting to translate an SLS template to an AWS SAM template, however migrating the existing snippet to SAM does not seem possible and always results in: