public class RuntimeContext
extends java.lang.Object
implements com.amazonaws.services.lambda.runtime.Context
Context for runtime environments.| Constructor and Description |
|---|
RuntimeContext(io.micronaut.http.HttpHeaders headers) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
currentTime() |
java.lang.String |
getAwsRequestId() |
com.amazonaws.services.lambda.runtime.ClientContext |
getClientContext() |
protected java.lang.String |
getEnv(java.lang.String name) |
java.lang.String |
getFunctionName() |
java.lang.String |
getFunctionVersion() |
com.amazonaws.services.lambda.runtime.CognitoIdentity |
getIdentity() |
java.lang.String |
getInvokedFunctionArn() |
com.amazonaws.services.lambda.runtime.LambdaLogger |
getLogger() |
java.lang.String |
getLogGroupName() |
java.lang.String |
getLogStreamName() |
int |
getMemoryLimitInMB() |
int |
getRemainingTimeInMillis() |
public RuntimeContext(io.micronaut.http.HttpHeaders headers)
headers - HTTP Headerspublic java.lang.String getAwsRequestId()
getAwsRequestId in interface com.amazonaws.services.lambda.runtime.Contextpublic java.lang.String getLogGroupName()
getLogGroupName in interface com.amazonaws.services.lambda.runtime.Contextpublic java.lang.String getLogStreamName()
getLogStreamName in interface com.amazonaws.services.lambda.runtime.Contextpublic java.lang.String getFunctionName()
getFunctionName in interface com.amazonaws.services.lambda.runtime.Contextpublic java.lang.String getFunctionVersion()
getFunctionVersion in interface com.amazonaws.services.lambda.runtime.Contextpublic java.lang.String getInvokedFunctionArn()
getInvokedFunctionArn in interface com.amazonaws.services.lambda.runtime.Contextpublic com.amazonaws.services.lambda.runtime.CognitoIdentity getIdentity()
getIdentity in interface com.amazonaws.services.lambda.runtime.Contextpublic com.amazonaws.services.lambda.runtime.ClientContext getClientContext()
getClientContext in interface com.amazonaws.services.lambda.runtime.Contextpublic int getRemainingTimeInMillis()
getRemainingTimeInMillis in interface com.amazonaws.services.lambda.runtime.Contextpublic int getMemoryLimitInMB()
getMemoryLimitInMB in interface com.amazonaws.services.lambda.runtime.Contextpublic com.amazonaws.services.lambda.runtime.LambdaLogger getLogger()
getLogger in interface com.amazonaws.services.lambda.runtime.Contextprotected java.lang.String getEnv(java.lang.String name)
name - the name of the environment variablenull if the variable is not definedprotected long currentTime()