Method: Aws::Scheduler::Types::CreateScheduleInput#schedule_expression

Defined in:
lib/aws-sdk-scheduler/types.rb

#schedule_expressionString

The expression that defines when the schedule runs. The following formats are supported.

  • ‘at` expression - `at(yyyy-mm-ddThh:mm:ss)`

  • ‘rate` expression - `rate(value unit)`

  • ‘cron` expression - `cron(fields)`

You can use ‘at` expressions to create one-time schedules that invoke a target once, at the time and in the time zone, that you specify. You can use `rate` and `cron` expressions to create recurring schedules. Rate-based schedules are useful when you want to invoke a target at regular intervals, such as every 15 minutes or every five days. Cron-based schedules are useful when you want to invoke a target periodically at a specific time, such as at 8:00 am (UTC+0) every 1st day of the month.

A ‘cron` expression consists of six fields separated by white spaces: `(minutes hours day_of_month month day_of_week year)`.

A ‘rate` expression consists of a value as a positive integer, and a unit with the following options: `minute` | `minutes` | `hour` | `hours` | `day` | `days`

For more information and examples, see [Schedule types on EventBridge Scheduler] in the *EventBridge Scheduler User Guide*.

[1]: docs.aws.amazon.com/scheduler/latest/UserGuide/schedule-types.html

Returns:

  • (String)
[View source]

228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# File 'lib/aws-sdk-scheduler/types.rb', line 228

class CreateScheduleInput < Struct.new(
  :action_after_completion,
  :client_token,
  :description,
  :end_date,
  :flexible_time_window,
  :group_name,
  :kms_key_arn,
  :name,
  :schedule_expression,
  :schedule_expression_timezone,
  :start_date,
  :state,
  :target)
  SENSITIVE = []
  include Aws::Structure
end