-
Notifications
You must be signed in to change notification settings - Fork 17
/
CronOptions.go
38 lines (35 loc) · 1.11 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
package awssynthetics
// 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:
// schedule := synthetics.Schedule_Cron(&CronOptions{
// Hour: jsii.String("0,8,16"),
// })
//
// See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html
//
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"`
}