1.1.0 • Published 6 years ago

@mineko-io/lambda-basics v1.1.0

Weekly downloads
36
License
MIT
Repository
github
Last release
6 years ago

Lambda Basics

Build Status Maintainability

This module provides a set of useful functions for lambda.

Methods:

  • getSSMParameterValue(parameterName): Will return a decrypted value of given parameter
  • getResponseObject(statusCode, headers, body): Will return a response object where the body is json string
  • getErrorResponseBody(message, type): Wil lreturn a error response body
  • log(message): Will console.log a message and send it to sentry
  • logException(exception): Will console.log a message and send it to sentry
  • validateRequestParams(requiredParams)(params): Will return a function which will check if params contains requiredParams

Usage

Just add the package to your deployment package to lambda.

Install

npm i -S @mineko-io/lambda-basics
1.1.0

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago