packages/lambda/src/index.js
function loadIntegrationsHook(region, context, endpoints, integrationResults) {
      return require('./hooks/load-integration').hook(region, context, endpoints, integrationResults);
    }
function loadIntegrationsHook(region, context, endpoints, integrationResults) {
      return require('./hooks/load-integration').hook(region, context, endpoints, integrationResults);
    }
function loadIntegrationsHook ( region , context , endpoints , integrationResults ) { return require ( './hooks/load-integration' ) . hook ( region , context , endpoints , integrationResults ) ; }
This hook perform the deployment of lambdas in AWS and return integration data
that will be used to configure the related endpoints
@param {string} region - the AWS region where we doing the deployment
@param {Object} endpoints - the list of endpoints that will be deployed
@param {Array} context - a object containing the stage and the environment
@param {Array} integrationResults - the collection of integration results
we will add our own integrations results
to this array
@returns {Promise<Array>}
This hook perform the deployment of lambdas in AWS and return integration data that will be used to configure the related endpoints