1.1.0 • Published 5 years ago

@mineko-io/lambda-basics v1.1.0

Weekly downloads
36
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago