@aws-cdk_aws-synthetics-alpha.CronOptions

interface CronOptions ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Synthetics.Alpha.CronOptions
Gogithub.com/aws/aws-cdk-go/awscdksyntheticsalpha/v2#CronOptions
Javasoftware.amazon.awscdk.services.synthetics.alpha.CronOptions
Pythonaws_cdk.aws_synthetics_alpha.CronOptions
TypeScript (source)@aws-cdk/aws-synthetics-alpha ยป CronOptions

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.

See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Synthetics_Canaries_cron.html

Example

const schedule = synthetics.Schedule.cron({
  hour: '0,8,16', // Run at 12am, 8am, 4pm UTC every day
});

Properties

NameTypeDescription
day?๐Ÿ”นstringThe day of the month to run this rule at.
hour?๐Ÿ”นstringThe hour to run this rule at.
minute?๐Ÿ”นstringThe minute to run this rule at.
month?๐Ÿ”นstringThe month to run this rule at.
weekDay?๐Ÿ”นstringThe day of the week to run this rule at.

day?๐Ÿ”น

Type: string (optional, default: Every day of the month)

The day of the month to run this rule at.


hour?๐Ÿ”น

Type: string (optional, default: Every hour)

The hour to run this rule at.


minute?๐Ÿ”น

Type: string (optional, default: Every minute)

The minute to run this rule at.


month?๐Ÿ”น

Type: string (optional, default: Every month)

The month to run this rule at.


weekDay?๐Ÿ”น

Type: string (optional, default: Any day of the week)

The day of the week to run this rule at.