UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

26 lines 1.17 kB
"use strict"; // Copyright 2016-2018, Pulumi Corporation. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); exports.onSchedule = void 0; const eventRule = require("./eventRuleMixins"); /** * Creates a CloudWatch event that will fire based on the specified schedule. This will create * an EventRule which will then invoke the provided handler every time it fires. */ function onSchedule(name, schedule, handler, args, opts) { return new eventRule.EventRuleEventSubscription(name, schedule, handler, args, opts); } exports.onSchedule = onSchedule; //# sourceMappingURL=cloudwatchMixins.js.map