The Amazon SDK for JavaScript V3 API
Reference Guide
Configure CloudWatch to invoke the Lambda functions
To configure CloudWatch to invoke the Lambda functions:
-
Open the Functions page on the Lambda console.
-
Choose the Lambda function.
-
Under Designer, choose Add trigger.
-
Set the trigger type to CloudWatch Events/EventBridge.
-
For Rule, choose Create a new rule.
-
Fill in the Rule name and Rule description.
-
For rule type, select Schedule expression.
-
In the Schedule expression field, enter a cron expression. For example, cron(0 12 ? * MON-FRI *).
-
Choose Add.
Note
For more information, see Using Lambda with CloudWatch Events
.