interface CronOptions
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.StepFunctions.Tasks.CronOptions |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#CronOptions |
![]() | software.amazon.awscdk.services.stepfunctions.tasks.CronOptions |
![]() | aws_cdk.aws_stepfunctions_tasks.CronOptions |
![]() | aws-cdk-lib » aws_stepfunctions_tasks » 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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const cronOptions: stepfunctions_tasks.CronOptions = {
day: 'day',
hour: 'hour',
minute: 'minute',
month: 'month',
weekDay: 'weekDay',
year: 'year',
};
Properties
Name | Type | Description |
---|---|---|
day? | string | The day of the month to run this rule at. |
hour? | string | The hour to run this rule at. |
minute? | string | The minute to run this rule at. |
month? | string | The month to run this rule at. |
week | string | The day of the week to run this rule at. |
year? | string | The year 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: Whichever day of the week that day
falls on)
The day of the week to run this rule at.
year?
Type:
string
(optional, default: Every year)
The year to run this rule at.