CronOptionsWithTimezone
- class aws_cdk.aws_scheduler_alpha.CronOptionsWithTimezone(*, day=None, hour=None, minute=None, month=None, week_day=None, year=None, time_zone=None)
Bases:
CronOptions
(deprecated) 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.
- Parameters:
day (
Optional
[str
]) – The day of the month to run this rule at. Default: - Every day of the monthhour (
Optional
[str
]) – The hour to run this rule at. Default: - Every hourminute (
Optional
[str
]) – The minute to run this rule at. Default: - Every minutemonth (
Optional
[str
]) – The month to run this rule at. Default: - Every monthweek_day (
Optional
[str
]) – The day of the week to run this rule at. Default: - Any day of the weekyear (
Optional
[str
]) – The year to run this rule at. Default: - Every yeartime_zone (
Optional
[TimeZone
]) – (deprecated) The timezone to run the schedule in. Default: - TimeZone.ETC_UTC
- See:
- Stability:
deprecated
- ExampleMetadata:
infused
Example:
# target: targets.LambdaInvoke rate_based_schedule = Schedule(self, "Schedule", schedule=ScheduleExpression.rate(Duration.minutes(10)), target=target, description="This is a test rate-based schedule" ) cron_based_schedule = Schedule(self, "Schedule", schedule=ScheduleExpression.cron( minute="0", hour="23", day="20", month="11", time_zone=TimeZone.AMERICA_NEW_YORK ), target=target, description="This is a test cron-based schedule that will run at 11:00 PM, on day 20 of the month, only in November in New York timezone" )
Attributes
- day
The day of the month to run this rule at.
- Default:
Every day of the month
- hour
The hour to run this rule at.
- Default:
Every hour
- minute
The minute to run this rule at.
- Default:
Every minute
- month
The month to run this rule at.
- Default:
Every month
- time_zone
(deprecated) The timezone to run the schedule in.
- Default:
TimeZone.ETC_UTC
- Stability:
deprecated
- week_day
The day of the week to run this rule at.
- Default:
Any day of the week
- year
The year to run this rule at.
- Default:
Every year