A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/SamVerschueren/aws-lambda-mock-context below:

SamVerschueren/aws-lambda-mock-context: AWS Lambda mock context object

aws-lambda-mock-context

AWS Lambda mock context object

$ npm install --save-dev aws-lambda-mock-context
const context = require('aws-lambda-mock-context');

const ctx = context();

index.handler({hello: 'world'}, ctx);

ctx.Promise
    .then(() => {
        //=> succeed() called
    })
    .catch(err => {
        //=> fail() called
    });

Type: string
Default: us-west-1

AWS region.

Type: string
Default: 123456789012

Account number.

Type: string
Default: aws-lambda-mock-context

Name of the function.

Type: string
Default: $LATEST

Version of the function.

Type: string
Default: 128

Memory limit.

Type: string

Alias of the function.

Type: number
Default: 3

Timeout of the lambda function in seconds.

MIT © Sam Verschueren


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4