Show / Hide Table of Contents

Class CronOptions

Options to configure a cron expression.

Inheritance
object
CronOptions
Implements
ICronOptions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.StepFunctions.Tasks
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CronOptions : ICronOptions
Syntax (vb)
Public Class CronOptions Implements ICronOptions
Remarks

All fields are strings so you can use complex expressions. Absence of a field implies '*' or '?', whichever one is appropriate.

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

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.StepFunctions.Tasks;

             var cronOptions = new CronOptions {
                 Day = "day",
                 Hour = "hour",
                 Minute = "minute",
                 Month = "month",
                 WeekDay = "weekDay",
                 Year = "year"
             };

Synopsis

Constructors

CronOptions()

Options to configure a cron expression.

Properties

Day

The day of the month to run this rule at.

Hour

The hour to run this rule at.

Minute

The minute to run this rule at.

Month

The month to run this rule at.

WeekDay

The day of the week to run this rule at.

Year

The year to run this rule at.

Constructors

CronOptions()

Options to configure a cron expression.

public CronOptions()
Remarks

All fields are strings so you can use complex expressions. Absence of a field implies '*' or '?', whichever one is appropriate.

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

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.StepFunctions.Tasks;

             var cronOptions = new CronOptions {
                 Day = "day",
                 Hour = "hour",
                 Minute = "minute",
                 Month = "month",
                 WeekDay = "weekDay",
                 Year = "year"
             };

Properties

Day

The day of the month to run this rule at.

public string? Day { get; set; }
Property Value

string

Remarks

Default: - Every day of the month

Hour

The hour to run this rule at.

public string? Hour { get; set; }
Property Value

string

Remarks

Default: - Every hour

Minute

The minute to run this rule at.

public string? Minute { get; set; }
Property Value

string

Remarks

Default: - Every minute

Month

The month to run this rule at.

public string? Month { get; set; }
Property Value

string

Remarks

Default: - Every month

WeekDay

The day of the week to run this rule at.

public string? WeekDay { get; set; }
Property Value

string

Remarks

Default: - Whichever day of the week that day falls on

Year

The year to run this rule at.

public string? Year { get; set; }
Property Value

string

Remarks

Default: - Every year

Implements

ICronOptions
Back to top Generated by DocFX