@aws-cdk_aws-scheduler-alpha.CronOptionsWithTimezone

interface CronOptionsWithTimezone ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Scheduler.Alpha.CronOptionsWithTimezone
Gogithub.com/aws/aws-cdk-go/awscdkscheduleralpha/v2#CronOptionsWithTimezone
Javasoftware.amazon.awscdk.services.scheduler.alpha.CronOptionsWithTimezone
Pythonaws_cdk.aws_scheduler_alpha.CronOptionsWithTimezone
TypeScript (source)@aws-cdk/aws-scheduler-alpha ยป CronOptionsWithTimezone

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/eventbridge/latest/userguide/scheduled-events.html#cron-expressions

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as scheduler_alpha from '@aws-cdk/aws-scheduler-alpha';
import * as cdk from 'aws-cdk-lib';

declare const timeZone: cdk.TimeZone;
const cronOptionsWithTimezone: scheduler_alpha.CronOptionsWithTimezone = {
  day: 'day',
  hour: 'hour',
  minute: 'minute',
  month: 'month',
  timeZone: timeZone,
  weekDay: 'weekDay',
  year: 'year',
};

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.
timeZone?๐Ÿ”นTimeZoneThe timezone to run the schedule in.
weekDay?๐Ÿ”นstringThe day of the week to run this rule at.
year?๐Ÿ”นstringThe 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.


timeZone?๐Ÿ”น

Type: TimeZone (optional, default: TimeZone.ETC_UTC)

The timezone to run the schedule in.


weekDay?๐Ÿ”น

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

The day of the week to run this rule at.


year?๐Ÿ”น

Type: string (optional, default: Every year)

The year to run this rule at.