aws-core-utils
Advanced tools
Changelog
7.0.12
toErrorResponse
function to the opts
arguments of failLambdaCallback
and
generateHandlerFunction
functions of the api-lambdas
module to enable callers to customise the error response
object or Lambda Proxy error response body returnedcore-functions
dependency to version 3.0.22logging-utils
dependency to version 4.0.22aws-sdk
dev dependency to version 2.190.0Changelog
7.0.11
core-functions
dependency to version 3.0.20logging-utils
dependency to version 4.0.20aws-sdk
dev dependency to version 2.161.0aws-core-test-utils
dev dependency to version 3.0.7Changelog
7.0.10
exports._ = '_'; //IDE workaround
) of most modules to (exports._$_ = '_$_';
) to avoid
potential future collisions with lodash
& underscore
core-functions
dependency to version 3.0.19logging-utils
dependency to version 4.0.19aws-core-test-utils
dev dependency to version 3.0.6Changelog
7.0.9
dynamodb-doc-client-cache
, kinesis-cache
, kms-cache
& lambda-cache
modules to use an optional,
alternative AWS constructor passed via a new optional context.AWS
property to enable use of an AWS XRay-captured
AWS constructoraws-sdk
dependency to version 2.143.0Changelog
7.0.8
core-functions
dependency to version 3.0.18logging-utils
dependency to version 4.0.18Changelog
7.0.7
api-lambdas
module to support API Gateway Lambda Proxy integration:
generateHandlerFunction
function with a preferred single optional opts
5th parameter, which includes the 5 legacy parameters (logRequestResponseAtLogLevel
, allowedHttpStatusCodes
,
invalidRequestMsg
, failureMsg
& successMsg
) and also includes 2 new parameters (useLambdaProxy
& defaultHeaders
)
generateHandlerFunction
function still supports invoking it with its legacy 5th to 9th parametersfailCallback
function with a preferred optional opts
6th parameter, which
includes the legacy parameter (allowedHttpStatusCodes
) and also includes 2 new parameters (useLambdaProxy
&
defaultHeaders
)
failCallback
function still supports invoking it with its legacy 6th parameterfailCallback
function to also support Lambda Proxy integrationsucceedCallback
function to support both default integration & Lambda Proxy integrationhandler
function to use new succeedCallback
function & to pass the generateHandlerFunction
function's new opts
parameter on all failCallback
& succeedCallback
callsuseLambdaProxy
parameter to true
:
failCallback
& new succeedCallback
functions to invoke your Lambda's callback function with ONLY a
null "error" parameter and a non-null "data" parameter, which is compatible with Lambda Proxy integrationdynamodb-doc-client-cache
, kinesis-cache
, kms-cache
, lambda-cache
& regions
modulescore-functions
dependency to version 3.0.17logging-utils
dependency to version 4.0.17aws-core-test-utils
dev dependency to version 3.0.5aws-sdk
dev dependency to version 2.128.0Changelog
7.0.6
regions
module:
getRegionKey
function to EITHER get the existing region key (if any) OR return undefined and
NOT set a new region key (if none)getOrSetRegionKey
function that gets the existing region key (if any) or sets a new region key (if none)listRegionKeys
function to list the currently cached region keysdynamodb-doc-client-cache
, kinesis-cache
, kms-cache
& lambda-cache
:
regions.getRegionKey
behaviour and to use new regions.getOrSetRegionKey
clearCache
function to clear the instance & options caches according to the currently cached region keysChangelog
7.0.5
lambdas
module:
getInvokedFunctionNameWithAliasOrVersion
functiongetFunctionNameVersionAndAlias
function to also return an invoked
property containing the same
concatenation of invoked function name & alias or version generated by getInvokedFunctionNameWithAliasOrVersion
type-defs
module:
invoked
property to LambdaFunctionNameVersionAndAlias
type definitionlambda-utils
module:
Promises.wrapMethod
with Promises.wrap
error.stack
with logging of just the errorcore-functions
dependency to version 3.0.15logging-utils
dependency to version 4.0.14Changelog
7.0.4
exports
object instead of replacing the default module.exports
objectexports._ = '_'; //IDE workaround
) to most modules as a temporary workaround for IDE issuecore-functions
dependency to version 3.0.14logging-utils
dependency to version 4.0.13Changelog
7.0.3
core-functions
dependency to version 3.0.11logging-utils
dependency to version 4.0.11