Rate expressions reference
A rate expression starts when you create the scheduled event rule, and then it runs on a defined schedule.
Rate expressions have two required fields separated by white space.
Syntax
rate(value unit)
 value

A positive number.
 unit

The unit of time. Different units are required for values of 1, such as
minute
, and values over 1, such asminutes
.Valid values: minute  minutes  hour  hours  day  days
Limitations
If the value is equal to 1, then the unit must be singular. If the value is greater than 1, the unit must be plural. For example, rate(1 hours) and rate(5 hour) aren't valid, but rate(1 hour) and rate(5 hours) are valid.
Examples
The following examples show how to use rate expressions with the AWS CLI
putrule
command. The first example triggers the rule every minute, the next
triggers it every five minutes, the third example triggers it once an hour, and the final example triggers it once per day.
aws events putrule scheduleexpression "rate(1 minute)" name
MyRule2
aws events putrule scheduleexpression "rate(5 minutes)" name
MyRule3
aws events putrule scheduleexpression "rate(1 hour)" name
MyRule4
aws events putrule scheduleexpression "rate(1 day)" name
MyRule5