LambdaBase v1.3.4 LambdaBase behaviour View Source

This is lambda base. Use LambdaBase and implement handle(event, context) function

Link to this section Summary

Callbacks

Lambda runtime call handle function.

Lambda runtime call init function.

Link to this section Callbacks

Link to this callback

handle(event, context)

View Source
handle(event :: map(), context :: map()) ::
  {:ok, String.t()} | {:error, String.t()}

Lambda runtime call handle function.

Link to this callback

init(context)

View Source
init(context :: map()) :: {:ok, map()}

Lambda runtime call init function.