Skip to main content
Module

x/oak_serverless/deps.ts>Context

Run Oak applications with AWS Lambda and Amazon API Gateway.
Latest
interface Context
import { type Context } from "https://deno.land/x/oak_serverless@0.2.1/deps.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