"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Schedule=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class Schedule{constructor(){}static expression(expression){return new LiteralSchedule(expression)}static cron(options){if(jsiiDeprecationWarnings.aws_cdk_lib_aws_autoscaling_CronOptions(options),options.weekDay!==void 0&&options.day!==void 0)throw new Error("Cannot supply both 'day' and 'weekDay', use at most one");const minute=fallback(options.minute,"*"),hour=fallback(options.hour,"*"),month=fallback(options.month,"*"),day=fallback(options.day,"*"),weekDay=fallback(options.weekDay,"*");return new LiteralSchedule(`${minute} ${hour} ${day} ${month} ${weekDay}`)}}exports.Schedule=Schedule,_a=JSII_RTTI_SYMBOL_1,Schedule[_a]={fqn:"aws-cdk-lib.aws_autoscaling.Schedule",version:"2.13.0"};class LiteralSchedule extends Schedule{constructor(expressionString){super();this.expressionString=expressionString}}function fallback(x,def){return x===void 0?def:x}
//# sourceMappingURL=schedule.js.map
