Schedule Source
See Blazor Event sample for an example of how to use the CloudWatch Event source with a LambdaSharp app.
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 publish a recurring event to the LambdaSharp App EventBus 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