package awsautoscaling // Options to configure a cron expression. // // All fields are strings so you can use complex expressions. Absence of // a field implies '*' or '?', whichever one is appropriate. // // Example: // var autoScalingGroup autoScalingGroup // // // autoScalingGroup.scaleOnSchedule(jsii.String("PrescaleInTheMorning"), &BasicScheduledActionProps{ // Schedule: autoscaling.Schedule_Cron(&CronOptions{ // Hour: jsii.String("8"), // Minute: jsii.String("0"), // }), // MinCapacity: jsii.Number(20), // }) // // autoScalingGroup.scaleOnSchedule(jsii.String("AllowDownscalingAtNight"), &BasicScheduledActionProps{ // Schedule: autoscaling.Schedule_*Cron(&CronOptions{ // Hour: jsii.String("20"), // Minute: jsii.String("0"), // }), // MinCapacity: jsii.Number(1), // }) // // See: http://crontab.org/ // type CronOptions struct { // The day of the month to run this rule at. Day *string `field:"optional" json:"day" yaml:"day"` // The hour to run this rule at. Hour *string `field:"optional" json:"hour" yaml:"hour"` // The minute to run this rule at. Minute *string `field:"optional" json:"minute" yaml:"minute"` // The month to run this rule at. Month *string `field:"optional" json:"month" yaml:"month"` // The day of the week to run this rule at. WeekDay *string `field:"optional" json:"weekDay" yaml:"weekDay"` }