@karmaniverous/smoz
    Preparing search index...

    Class StubLambdaContext

    Stub Lambda Context (aws-lambda) for handlers invoked outside AWS (the inline dev server and tests).

    done, fail and succeed are Node 0.10 compatibility methods that aws-lambda still declares on Context (deprecated). Handlers return results or throw, so the stubs are no-ops that exist only to satisfy the interface.

    Implements

    • Context
    Index
    awsRequestId: string
    callbackWaitsForEmptyEventLoop: boolean = false
    functionName: string
    functionVersion: "$LATEST" = '$LATEST'
    getRemainingTimeInMillis: () => number

    Own (unbound-safe) function: middy reads it off the context and calls it detached.

    invokedFunctionArn: string
    logGroupName: "lg" = 'lg'
    logStreamName: "ls" = 'ls'
    memoryLimitInMB: string
    • Returns void

      Use handler callback or promise result

    • Returns void

      Use handler callback with first argument or reject a promise result

    • Returns void

      Use handler callback with second argument or resolve a promise result