Schedule Source
See CloudWatch Schedule Event sample for an example of how to use the CloudWatch Schedule Event source.
Syntax
Schedule: String|Expression
Name: String
Properties
Name
-
The
Name
attribute specifies a name for this CloudWatch Schedule Event to distinguish it from other CloudWatch Schedule Event sources.Required: No
Type: String
Schedule
-
The
Schedule
attribute specifies acron
orrate
expression that defines a schedule for regularly invoking the Lambda function. See Schedule Expressions Using Rate or Cron for more information.Required: Yes
Type: String or Expression
Examples
Define a schedule event source to invokes an associated Lambda function using a cron
expression.
Sources:
- Schedule: cron(0 12 * * ? *)
Define a named schedule event source using a rate
expression.
Sources:
- Schedule: rate(1 minute)
Name: MyEvent