Listify/Lambdas/Lists/src
2020-11-20 15:49:20 -05:00
..
main/java Lambda unit test infrastructure 2020-10-08 18:34:06 -04:00
test Update StatementInjector for missing rsReturns 2020-10-09 00:15:57 -04:00
README.md Core Module readme 2020-11-20 15:49:20 -05:00

Core Module

Wraps inner business functionality and abstracts certain environment interactions such as opening/closing the database connection and processing the API Gateway input json.

Expected input json:

The following is created by APIGateway along the lines of this definition

{
  "body": {jsonizedPOSTEDObject},
  "params": {
      "querystring": {
          "queryParamifApplicable": "paramValue"
      }
   },
   "context": {
       "sub": "cognitoID"
   }
}

querystring will only have subcomponents if there are query parameters

{jsonizedPOSTEDObject} will be something like:

{
    "var1": 1,
    "var2": "string"
}

Module Contract:

For the module contract see CallHandler

Returns

Business logic return or error is appropriate