LambdaEnvironment

org.encalmo.lambda.LambdaEnvironment
See theLambdaEnvironment companion object
final class LambdaEnvironment(variablesOverrides: Map[String, String], retrieveSecrets: (String => Option[String]) => Map[String, String])

Provides access to the lambda instance environment.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

final def errorUrl(requestId: String): URI
final def getFunctionName(): String

The name of the function.

The name of the function.

Attributes

final def getFunctionVersion(): String

The version of the function being executed.

The version of the function being executed.

Attributes

The path to your Lambda function code.

The path to your Lambda function code.

Attributes

final def getLambdaTaskRoot(): String

The path to runtime libraries.

The path to runtime libraries.

Attributes

final def getLogGroupName(): String

The name of the Amazon CloudWatch Logs group for the function.

The name of the Amazon CloudWatch Logs group for the function.

Attributes

final def getLogStreamName(): String

The name of the Amazon CloudWatch Logs stream for the function.

The name of the Amazon CloudWatch Logs stream for the function.

Attributes

final def getLogger(): LambdaLogger
final def getMemoryLimitInMB(): Int

The amount of memory available to the function in MB.

The amount of memory available to the function in MB.

Attributes

final def getProperty(key: String): String
final def maybeGetProperty(key: String): Option[String]
final inline def parseBooleanFlagDefault(default: Boolean): String => Boolean
final def resetOut(): Unit
final def responseRequest(requestId: String, output: String): HttpRequest
final def responseUrl(requestId: String): URI
final def setCustomOut(): Unit
def withAdditionalVariables(additionalVariablesOverrides: Map[String, String]): LambdaEnvironment

Concrete fields

inline val LAMBDA_VERSION_DATE: "2018-06-01"
final val initErrorUrl: URI
final val isDebugMode: Boolean

Returns true when runs deployed to AWS Lambda

Returns true when runs deployed to AWS Lambda

Attributes

final val isTraceMode: Boolean
final val nextEventUrl: URI