Packages

abstract class SnsHandler[TEvent] extends LambdaHandler[TEvent, Unit]

Linear Supertypes
LambdaHandler[TEvent, Unit], LambdaConfiguration, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SnsHandler
  2. LambdaHandler
  3. LambdaConfiguration
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SnsHandler()(implicit arg0: Manifest[TEvent])

Abstract Value Members

  1. abstract def execute(event: TEvent, context: Context): Unit

    This method should be implemented by all lambda functions a and is called by the lambda handler.

    This method should be implemented by all lambda functions a and is called by the lambda handler. Please note that the main entry to the lambda codeBlock should be the "lambdaHandler".

    event

    TEvent

    context

    AWS Context

    returns

    TResponse, if not response is required set this to Unit

    Definition Classes
    LambdaHandler
  2. abstract def getValue(path: String): Option[String]

    Get configuration values by name.

    Get configuration values by name. This assumes that the name uses a path notation

    path

    name of the configuration value

    Definition Classes
    LambdaConfiguration
  3. abstract def getValues(path: String): Map[String, String]

    Get multiple values using a prefix.

    Get multiple values using a prefix. e.g. the path "/database" would return /database/username, /database/password, /database/port, /database/host, etc.

    path

    name of the path to search for

    Definition Classes
    LambdaConfiguration

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def exceptionListener(listener: (Throwable) ⇒ Unit): Unit

    Add custom logic in the handleFailure method before raising the exception

    Add custom logic in the handleFailure method before raising the exception

    listener

    function

    Attributes
    protected
    Definition Classes
    LambdaHandler
  9. val exceptionListeners: ArrayBuffer[(Throwable) ⇒ Unit]
    Attributes
    protected
    Definition Classes
    LambdaHandler
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def handle(codeBlock: ⇒ Unit): Option[Unit]

    Execute the function code and handles errors using the functionHandler.

    Execute the function code and handles errors using the functionHandler. It returns None if the response type is Unit, otherwise it returns an Option of TResponse.

    codeBlock

    any codeBlock that returns a TResponse

    returns

    Option[TResponse]

    Attributes
    protected
    Definition Classes
    LambdaHandler
  13. def handleFailure(exception: Throwable): Unit

    Deal with exceptions, the basic logic reports and re-throws the exception.

    Deal with exceptions, the basic logic reports and re-throws the exception.

    exception

    the reported exception

    returns

    TResponse

    Attributes
    protected
    Definition Classes
    LambdaHandler
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def isWarmUpEvent(json: String): Boolean

    check if the message is a warm up event or not.

    check if the message is a warm up event or not. Returns true if it is.

    json

    string event

    returns

    Boolean

    Attributes
    protected
    Definition Classes
    LambdaHandler
  17. def jsonDecode(json: String): TEvent

    Override this method to use a custom json-decode strategy

    Override this method to use a custom json-decode strategy

    json

    string event

    returns

    TEvent

    Attributes
    protected
    Definition Classes
    SnsHandlerLambdaHandler
  18. final def lambdaHandler(inputStream: InputStream, outputStream: OutputStream, context: Context): Unit

    The lambdaHandler is the main entry point to your application and it is in charge of decoding your event, handling errors/notifications, and writing to the output stream.

    The lambdaHandler is the main entry point to your application and it is in charge of decoding your event, handling errors/notifications, and writing to the output stream.

    inputStream

    aws input stream

    outputStream

    aws output stream

    context

    aws lambda context

    Definition Classes
    LambdaHandler
  19. val log: Logger
    Attributes
    protected
    Definition Classes
    LambdaHandler
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. val region: String
    Attributes
    protected
    Definition Classes
    LambdaHandler
  24. def responseListener(listener: (Unit) ⇒ Unit): Unit

    Transform the function response using custom functions

    Transform the function response using custom functions

    listener

    function

    Attributes
    protected
    Definition Classes
    LambdaHandler
  25. val responseListeners: ArrayBuffer[(Unit) ⇒ Unit]
    Attributes
    protected
    Definition Classes
    LambdaHandler
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. def validationListener(listener: (TEvent) ⇒ Unit): Unit

    Validate the request using custom functions

    Validate the request using custom functions

    listener

    function

    Attributes
    protected
    Definition Classes
    LambdaHandler
  29. val validationListeners: ArrayBuffer[(TEvent) ⇒ Unit]
    Attributes
    protected
    Definition Classes
    LambdaHandler
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from LambdaHandler[TEvent, Unit]

Inherited from LambdaConfiguration

Inherited from AnyRef

Inherited from Any

Ungrouped