Class: Context

Object to represent an AWS Lambda function execution context.

Methods

getRequestId

Returns the unique id for this request.

getDeadlineMs

Returns the request execution deadline in milliseconds from the epoch.

getInvokedFunctionArn

Returns the ARN of the function being invoked.

getTraceId

Returns the trace id for this request

getRemainingExecutionTime

Returns the remaining execution time for this request in milliseconds

getRequestId

function getRequestId() returns string
Isolated Function

Returns the unique id for this request.

Return Type

(string)

the request id

getDeadlineMs

function getDeadlineMs() returns int
Isolated Function

Returns the request execution deadline in milliseconds from the epoch.

Return Type

(int)

the request execution deadline

getInvokedFunctionArn

function getInvokedFunctionArn() returns string
Isolated Function

Returns the ARN of the function being invoked.

Return Type

(string)

the invoked function ARN

getTraceId

function getTraceId() returns string
Isolated Function

Returns the trace id for this request

Return Type

(string)

the trace id

getRemainingExecutionTime

function getRemainingExecutionTime() returns int
Isolated Function

Returns the remaining execution time for this request in milliseconds

Return Type

(int)

the remaining execution time