dooms
dooms

Reputation: 1645

Update trigger AWS Lambda [NodeJS SDK]

Is it possible to update programmatically (from a lambda function) the trigger of a (another) lambda function ?

UPDATE : more precisely the trigger is a Schedule Event (cron)

I found some actions like change the code or the runtime but didn't see anything concerning the trigger.

Upvotes: 1

Views: 1742

Answers (1)

Mark B
Mark B

Reputation: 200501

Scheduled events fall under the CloudWatch service. That's why you aren't seeing them under the Lambda SDK. You have to create or update the CloudWatch Event that points to a Lambda target.

You didn't specify what language/SDK you are using, but this is the documentation for CloudWatch Events in the NodeJS SDK. It should be easy to find the corresponding documentation for whatever language/SDK you are using.

Here is official documentation showing how to update Lambda scheduled events via the AWS CLI.

Upvotes: 3

Related Questions