-
Notifications
You must be signed in to change notification settings - Fork 17
/
CronOptions.go
53 lines (50 loc) · 1.53 KB
/
CronOptions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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.
// Default: - Every day of the month.
//
Day *string `field:"optional" json:"day" yaml:"day"`
// The hour to run this rule at.
// Default: - Every hour.
//
Hour *string `field:"optional" json:"hour" yaml:"hour"`
// The minute to run this rule at.
// Default: - Every minute.
//
Minute *string `field:"optional" json:"minute" yaml:"minute"`
// The month to run this rule at.
// Default: - Every month.
//
Month *string `field:"optional" json:"month" yaml:"month"`
// The day of the week to run this rule at.
// Default: - Any day of the week.
//
WeekDay *string `field:"optional" json:"weekDay" yaml:"weekDay"`
}