Skip to content

Instantly share code, notes, and snippets.

@onema
Last active October 30, 2018 07:52
Show Gist options
  • Save onema/0373c098fa72beab57861f5b32c75659 to your computer and use it in GitHub Desktop.
Save onema/0373c098fa72beab57861f5b32c75659 to your computer and use it in GitHub Desktop.
import com.amazonaws.services.lambda.runtime.Context
import io.onema.userverless.configuration.lambda.NoopLambdaConfiguration
import io.onema.userverless.function.SnsHandler
case class Foo(bar: String)
class Function extends SnsHandler[Foo] with NoopLambdaConfiguration {
//--- Methods ---
def execute(event: Foo, context: Context): Unit = {
println(event.bar)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment