CronOptions

class aws_cdk.aws_autoscaling.CronOptions(*, day=None, hour=None, minute=None, month=None, week_day=None)

Bases: object

__init__(*, day=None, hour=None, minute=None, month=None, week_day=None)

Options to configure a cron expression.

All fields are strings so you can use complex expresions. 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 month

  • hour (Optional[str]) – The hour to run this rule at. Default: - Every hour

  • minute (Optional[str]) – The minute to run this rule at. Default: - Every minute

  • month (Optional[str]) – The month to run this rule at. Default: - Every month

  • week_day (Optional[str]) – The day of the week to run this rule at. Default: - Any day of the week

see :see: http://crontab.org/

Attributes

day

The day of the month to run this rule at.

default :default: - Every day of the month

Return type

Optional[str]

hour

The hour to run this rule at.

default :default: - Every hour

Return type

Optional[str]

minute

The minute to run this rule at.

default :default: - Every minute

Return type

Optional[str]

month

The month to run this rule at.

default :default: - Every month

Return type

Optional[str]

week_day

The day of the week to run this rule at.

default :default: - Any day of the week

Return type

Optional[str]