Skip to content

Schedule

Source code in docs_src/capo_compute_optimizer_automation/types/schedule.py
class Schedule(TypedDict, closed=True):
    schedule_expression: NotRequired["str"]
    """<p>The expression that defines when the schedule runs. <code>cron</code> expression is supported. A <code>cron</code> expression consists of six fields separated by white spaces: (<code>minutes</code> <code>hours</code> <code>day_of_month</code> <code>month</code> <code>day_of_week</code> <code>year</code>)</p> <note> <p>You can schedule rules to run at most once per day. Your cron expression must use specific values (not wildcards) for the minutes and hours fields. For example: (<code>30 12 * * *</code>) runs daily at 12:30 PM UTC.</p> </note>"""
    schedule_expression_timezone: NotRequired["str"]
    """<p>The timezone to use when interpreting the schedule expression.</p>"""
    execution_window_in_minutes: NotRequired["int"]
    """<p>The time window in minutes during which the automation rule can start implementing recommended actions.</p>"""

execution_window_in_minutes instance-attribute

execution_window_in_minutes: NotRequired[int]

The time window in minutes during which the automation rule can start implementing recommended actions.

schedule_expression instance-attribute

schedule_expression: NotRequired[str]

The expression that defines when the schedule runs. cron expression is supported. A cron expression consists of six fields separated by white spaces: (minutes hours day_of_month month day_of_week year)

You can schedule rules to run at most once per day. Your cron expression must use specific values (not wildcards) for the minutes and hours fields. For example: (30 12 * * *) runs daily at 12:30 PM UTC.

schedule_expression_timezone instance-attribute

schedule_expression_timezone: NotRequired[str]

The timezone to use when interpreting the schedule expression.