@faceteer/cdk
Version:
CDK 2.0 constructs and helpers that make composing a Lambda powered service easier.
17 lines (16 loc) • 416 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CronHandler = CronHandler;
const handler_1 = require("./handler");
/**
* Creates a handler that will run on a schedule
* @param options
* @param handler
* @returns
*/
function CronHandler(options, handler) {
return Object.assign(handler, {
definition: options,
type: handler_1.HandlerTypes.Cron,
});
}