Configure CloudWatch to invoke the Lambda functions - Amazon SDK for JavaScript
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

The Amazon SDK for JavaScript V3 API Reference Guide describes in detail all the API operations for the Amazon SDK for JavaScript version 3 (V3).

Configure CloudWatch to invoke the Lambda functions

To configure CloudWatch to invoke the Lambda functions:

  1. Open the Functions page on the Lambda console.

  2. Choose the Lambda function.

  3. Under Designer, choose Add trigger.

  4. Set the trigger type to CloudWatch Events/EventBridge.

  5. For Rule, choose Create a new rule.

  6. Fill in the Rule name and Rule description.

  7. For rule type, select Schedule expression.

  8. In the Schedule expression field, enter a cron expression. For example, cron(0 12 ? * MON-FRI *).

  9. Choose Add.

    Note

    For more information, see Using Lambda with CloudWatch Events.