hi, has anyone had success implementing the com.amazonaws/aws-lambda-java-events
for your lambda functions?
(ns handler.core
(:gen-class
:implements [com.amazonaws.services.lambda.runtime.RequestHandler])
(:import (com.amazonaws.services.lambda.runtime.events SNSEvent)
(com.amazonaws.services.lambda.runtime Context)))
(defn -handleRequest [^SNSEvent event ^Context context]
(let [logger (.getLogger context)]
(.info logger event)
(.info logger context)))
lambda is not very happy about this
{
"errorMessage": "Class handler.core does not implement RequestHandler with concrete type parameters"
}
I prefer getting InputStream and OutputStream as the parameters and parse event to clojure datastructures