package Ġcom . kotlin . aws . native . runtime . objects Ċ Ċ import Ġcom . kotlin . aws . native . runtime . Lambda Environment Ċ import Ġkotlinx . datetime . Clock Ċ Ċ data Ġclass ĠLambda Context ( ĊĠĠĠ Ġprivate Ġval ĠrequestId : ĠString , ĊĠĠĠ Ġprivate Ġval Ġdeadline Time : ĠLong ?, ĊĠĠĠ Ġprivate Ġval Ġinvoked Func Arn : ĠString ?, Ċ ) Ġ{ ĊĠĠĠ Ġfun Ġget Aws RequestId (): ĠString Ġ= ĠrequestId ĊĠĠĠ Ġfun Ġget Remaining TimeIn Millis (): ĠInt ? Ġ= Ġif Ġ( deadline Time Ġ!= Ġnull ) Ġ( Clock . System . now (). to Epoch Milliseconds () Ġ- Ġdeadline Time ). toInt () Ġelse Ġnull ĊĠĠĠ Ġfun Ġget Inv oked Function Arn (): ĠString ? Ġ= Ġinvoked Func Arn ĊĠĠĠ Ġfun Ġget Log Stream Name (): ĠString Ġ= ĠLambda Environment . LOG _ STREAM _ NAME ĊĠĠĠ Ġfun Ġget Memory Limit In MB (): ĠInt Ġ= ĠLambda Environment . MEMORY _ LIMIT ĊĠĠĠ Ġfun Ġget Log GroupName (): ĠString Ġ= ĠLambda Environment . LOG _ GROUP _ NAME ĊĠĠĠ Ġfun Ġget Function Version (): ĠString Ġ= ĠLambda Environment . FUNCTION _ VERSION ĊĠĠĠ Ġfun Ġget FunctionName (): ĠString Ġ= ĠLambda Environment . FUNCTION _ NAME Ċ } Ċ