-
-
Save lukaszkorecki/b59bfab4e5a3a25a47f3933fe01ee662 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gen-class | |
:name "ecs_notify.Core" | |
:implements [com.amazonaws.services.lambda.runtime.RequestStreamHandler]) | |
(defn -handleRequest | |
[_this input output ctx] | |
(let [logger (.getLogger ctx) | |
payload (unwrap-payload input)] | |
(notify-slack logger payload) | |
(with-open [o (io/writer output)] | |
(.write o (json/generate-string {:message "ack"}))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment