Class RuntimeContext
java.lang.Object
io.micronaut.function.aws.runtime.RuntimeContext
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.Context
Implementation of Lambda execution
Context for runtime environments.- Since:
- 1.4
- Author:
- sdelamo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longcom.amazonaws.services.lambda.runtime.ClientContextprotected Stringcom.amazonaws.services.lambda.runtime.CognitoIdentitycom.amazonaws.services.lambda.runtime.LambdaLoggerintintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amazonaws.services.lambda.runtime.Context
getTenantId
-
Constructor Details
-
RuntimeContext
public RuntimeContext(io.micronaut.http.HttpHeaders headers) - Parameters:
headers- HTTP Headers
-
-
Method Details
-
getAwsRequestId
- Specified by:
getAwsRequestIdin interfacecom.amazonaws.services.lambda.runtime.Context
-
getLogGroupName
- Specified by:
getLogGroupNamein interfacecom.amazonaws.services.lambda.runtime.Context
-
getLogStreamName
- Specified by:
getLogStreamNamein interfacecom.amazonaws.services.lambda.runtime.Context
-
getFunctionName
- Specified by:
getFunctionNamein interfacecom.amazonaws.services.lambda.runtime.Context
-
getFunctionVersion
- Specified by:
getFunctionVersionin interfacecom.amazonaws.services.lambda.runtime.Context
-
getInvokedFunctionArn
- Specified by:
getInvokedFunctionArnin interfacecom.amazonaws.services.lambda.runtime.Context
-
getIdentity
public com.amazonaws.services.lambda.runtime.CognitoIdentity getIdentity()- Specified by:
getIdentityin interfacecom.amazonaws.services.lambda.runtime.Context
-
getClientContext
public com.amazonaws.services.lambda.runtime.ClientContext getClientContext()- Specified by:
getClientContextin interfacecom.amazonaws.services.lambda.runtime.Context
-
getRemainingTimeInMillis
public int getRemainingTimeInMillis()- Specified by:
getRemainingTimeInMillisin interfacecom.amazonaws.services.lambda.runtime.Context
-
getMemoryLimitInMB
public int getMemoryLimitInMB()- Specified by:
getMemoryLimitInMBin interfacecom.amazonaws.services.lambda.runtime.Context
-
getLogger
public com.amazonaws.services.lambda.runtime.LambdaLogger getLogger()- Specified by:
getLoggerin interfacecom.amazonaws.services.lambda.runtime.Context
-
getEnv
- Parameters:
name- the name of the environment variable- Returns:
- the string value of the variable, or
nullif the variable is not defined
-
currentTime
protected long currentTime()- Returns:
- the number of milliseconds since January 1, 1970, 00:00:00 GMT until the current date
-