MultipleHandlersSupport

org.encalmo.lambda.MultipleHandlersSupport
trait MultipleHandlersSupport extends EventHandler, EventHandlerTag

Attributes

Graph
Supertypes
trait EventHandlerTag
trait EventHandler
class Object
trait Matchable
class Any

Members list

Type members

Inherited and Abstract types

Custom context initializez by the application.

Custom context initializez by the application.

Attributes

Inherited from:
EventHandler

Value members

Abstract methods

def sqsEventHandlers: Iterable[SqsEventHandler[ApplicationContext]]

Concrete methods

final inline override def getEventHandlerTag(event: String): Option[String]

Event tag will printed in the beginning of the log. Override to mark each log with event-specific tag. Default to None.

Event tag will printed in the beginning of the log. Override to mark each log with event-specific tag. Default to None.

Attributes

Definition Classes
EventHandlerTag
def handleApiGatewayHandlerException(input: String)(exception: Throwable)(using lambdaContext: LambdaContext): String

Provide custom ApiGateway error handling implementation here.

Provide custom ApiGateway error handling implementation here.

Attributes

def handleGenericEventHandlerException(input: String)(exception: Throwable)(using lambdaContext: LambdaContext): String
final override def handleRequest(input: String)(using LambdaContext, ApplicationContext): String

Provide your lambda business logic here.

Provide your lambda business logic here.

Value parameters

input

event sent to the lambda

Attributes

Returns

lambda output string

Definition Classes
EventHandler
def handleSqsEventHandlerException(input: String)(e: Throwable)(using lambdaContext: LambdaContext): Unit
def handleUnsupportedInputType(input: String)(using lambdaContext: LambdaContext): String

Inherited and Abstract methods

def initialize(using LambdaEnvironment): ApplicationContext

Initialize your implicit ApplicationContext here based on the lambda environment.

Initialize your implicit ApplicationContext here based on the lambda environment.

This context can be anything you want to initialize ONCE per lambda run, e.g. AWS client, etc.

Attributes

Inherited from:
EventHandler

Concrete fields

lazy val genericEventHandlersMap: Map[String, GenericEventHandler[ApplicationContext]]
lazy val sqsEventHandlersMap: Map[String, SqsEventHandler[ApplicationContext]]