@mineko-io/lambda-basics
v1.1.0
Published
Library of basic methods for AWS Lambda
Readme
Lambda Basics
This module provides a set of useful functions for lambda.
Methods:
getSSMParameterValue(parameterName): Will return a decrypted value of given parametergetResponseObject(statusCode, headers, body): Will return a response object where the body is json stringgetErrorResponseBody(message, type): Wil lreturn a error response bodylog(message): Will console.log a message and send it to sentrylogException(exception): Will console.log a message and send it to sentryvalidateRequestParams(requiredParams)(params): Will return a function which will check ifparamscontainsrequiredParams
Usage
Just add the package to your deployment package to lambda.
Install
npm i -S @mineko-io/lambda-basics