UNPKG

@fntio/infra-client

Version:

Self-hosted AWS access portal: credential vending, target-account trust, and grant-driven private networking as CDK stacks and constructs.

16 lines (11 loc) • 481 B
const cleanUpEvent = require('./clean-up-event'); const createRequest = require('./create-request'); const formatResponse = require('./format-response'); module.exports = options => { return getResponse => async (event_, context = {}) => { const event = cleanUpEvent(event_, options); const request = createRequest(event, context, options); const response = await getResponse(request, event, context); return formatResponse(event, response, options); }; };