TestEchoLambda

org.encalmo.lambda.TestEchoLambda
See theTestEchoLambda companion object

Attributes

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

Members list

Type members

Inherited classlikes

trait Instance

Lambda runtime instance interface.

Lambda runtime instance interface.

Attributes

Inherited from:
LambdaRuntime
Supertypes
class Object
trait Matchable
class Any

Inherited types

Custom context initializez by the application.

Custom context initializez by the application.

Attributes

Inherited from:
SimpleLambdaRuntime

Value members

Concrete methods

inline 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
override def initialize(using environment: 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

Definition Classes

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
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
LambdaRuntime -> RequestStreamHandler
Inherited from:
LambdaRuntime
final def initializeLambdaRuntime(variablesOverrides: Map[String, String]): Instance

Creates lambda runtime instance.

Creates lambda runtime instance.

Attributes

Inherited from:
LambdaRuntime
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

Inherited from:
LambdaRuntime
final inline def run(): Unit

Starts lambda runtime and blocks thread until finished.

Starts lambda runtime and blocks thread until finished.

Attributes

Inherited from:
LambdaRuntime

Switch off debug mode for the current lambda invocation.

Switch off debug mode for the current lambda invocation.

Attributes

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

Attributes

Inherited from:
LambdaRuntime

Inherited fields

Attributes

Inherited from:
LambdaRuntime