Context object

The context object provides methods to interact with the Lambda execution environment. The context object provides access to the following properties (by using a getter, of course):

  • Logger
  • MemoryLimitInMB
  • FunctionName
  • FunctionVersion
  • InvokedFunctionArn
  • AwsRequestId
  • LogStreamName
  • LogGroupName
  • ClientContext
  • Identity
  • RemainingTimeInMillis

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.