Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lambda/types.d.ts>Context

A deno runtime for AWS Lambda. Deploy deno via docker, SAM, serverless, or bundle it yourself.
Very Popular
Go to Latest
interface Context
import { type Context } from "https://deno.land/x/lambda@1.26.1/types.d.ts";

Handler context parameter. See AWS documentation.

Properties

callbackWaitsForEmptyEventLoop: boolean
functionName: string
functionVersion: string
invokedFunctionArn: string
memoryLimitInMB: string
awsRequestId: string
logGroupName: string
logStreamName: string
optional
identity: CognitoIdentity
optional
clientContext: ClientContext

Methods

getRemainingTimeInMillis(): number
deprecated
done(error?: Error, result?: any): void
deprecated
fail(error: Error | string): void
deprecated
succeed(messageOrObject: any): void
deprecated
succeed(message: string, object: any): void