LambdaRuntime

org.encalmo.lambda.LambdaRuntime
See theLambdaRuntime companion object
trait LambdaRuntime extends EventHandler, EventHandlerTag, RequestStreamHandler

Attributes

Companion
object
Graph
Supertypes
trait RequestStreamHandler
trait EventHandler
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Type members

Classlikes

trait Instance

Lambda runtime instance interface.

Lambda runtime instance interface.

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited and Abstract types

Custom context initializez by the application.

Custom context initializez by the application.

Attributes

Inherited from:
EventHandler

Value members

Concrete methods

final override def handleRequest(inputStream: InputStream, outputStream: OutputStream, context: Context): Unit

com.amazonaws.services.lambda.runtime.RequestStreamHandler implementation for Java Runtime integration

com.amazonaws.services.lambda.runtime.RequestStreamHandler implementation for Java Runtime integration

Attributes

Definition Classes
RequestStreamHandler
final def initializeLambdaRuntime(variablesOverrides: Map[String, String]): Instance

Creates lambda runtime instance.

Creates lambda runtime instance.

Attributes

final inline def reportError(errorMessage: String, errorUrl: URI)(using lambdaEnvironment: LambdaEnvironment): HttpResponse[String]

Report error back to the AWS lambda host.

Report error back to the AWS lambda host.

Attributes

final inline def run(): Unit

Starts lambda runtime and blocks thread until finished.

Starts lambda runtime and blocks thread until finished.

Attributes

Switch off debug mode for the current lambda invocation.

Switch off debug mode for the current lambda invocation.

Attributes

final def test(input: String, overrides: Map[String, String]): String

Inherited methods

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

Inherited from:
EventHandlerTag

Inherited and Abstract methods

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

Inherited from:
EventHandler

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