Class - awslambda : Context

Object to represent an AWS Lambda function execution context.

Methods

Returns the unique id for this request.

Returns the request execution deadline in milliseconds from the epoch.

Returns the ARN of the function being invoked.

Returns the trace id for this request

Returns the remaining execution time for this request in milliseconds

getRequestId

()

returns string
Isolated Function

Returns the unique id for this request.

  • Return Type

    (string)
  • the request id

getDeadlineMs

()

returns int
Isolated Function

Returns the request execution deadline in milliseconds from the epoch.

  • Return Type

    (int)
  • the request execution deadline

getInvokedFunctionArn

()

returns string
Isolated Function

Returns the ARN of the function being invoked.

  • Return Type

    (string)
  • the invoked function ARN

getTraceId

()

returns string
Isolated Function

Returns the trace id for this request

  • Return Type

    (string)
  • the trace id

getRemainingExecutionTime

()

returns int
Isolated Function

Returns the remaining execution time for this request in milliseconds

  • Return Type

    (int)
  • the remaining execution time