AbstractProtectedauth0ProtectedauthorizationProtectedbodyProtectedclaimsProtectedclientProtectedclientProtectedclientProtectedcognitoProtectedcurrentProtecteddefaultProtectedeventProtectedhttpProtected OptionalinitProtectedloggerProtectedlogProtectedmetricsProtectedpathProtectedpathProtectedprincipalProtectedprojectProtectedqueryProtectedresourceProtectedresourceProtectedresourceProtectedreturnProtected OptionalreturnProtectedstageProtectedtemplateProtectedtracerProtectedtracerProtectedtracerProtectedtranslationsProtectedcheckTo
ProtecteddeleteTo
ProtecteddeleteTo
ProtecteddoneDefault ending function for the Lambda.
Optionalerror: anyOptionalrawResult: anyProtectedgetGet the current log level for the current Lambda function's logger.
Note: "FATAL" means that no log will be printed.
ProtectedgetForce the parsing of a query parameter as an array of strings.
ProtectedgetForce the parsing of a query parameter as a boolean.
ProtectedgetTo
ProtectedgetTo
ProtectedhandleRemap an error to manage the logging and make sure no unhandled error is returned to the requester.
The main function (to override), that handles the request and must terminate invoking the method done.
ProtectedheadTo
ProtectedheadTo
Simulate an internal API request, invoking directly the lambda and therefore saving resources.
the body of the response
ProtectedloadLoad a shared resource in the back-end (translation, template, etc.). Search for the specified file path in both the Lambda function's main folder and the layers folder.
Load the translations from the shared resources and set them with a fallback language.
OptionaldefLang: stringProtectedpatchTo
ProtectedpatchTo
ProtectedpostTo
ProtectedpostTo
ProtectedpreparePrepare the CloudWatch metrics at the beginning of a request.
ProtectedpublishPublish the CloudWatch metrics (default and custom-defined) at the end of a reqeust.
Optionalerror: anyProtectedputTo
ProtectedputTo
Set the log level for the current Lambda function's logger.
ProtectedsharedCheck whether shared resource exists in the back-end (translation, template, etc.). Search for the specified file path in both the Lambda function's main folder and the layers folder.
Raise the log level of the current Lambda function's logger to "FATAL", hence avoiding printing any log.
ProtectedstoreStore the log associated to the request (no response/error handling).
Get a translated term by key, optionally interpolating variables (e.g. {{user}}).
If the term doesn't exist in the current language, it is searched in the default language.
OptionalinterpolateParams: any
An abstract class to inherit to manage API requests (AWS API Gateway) in an AWS Lambda function.