0

I have a lambda function that triggers based on Schedule expression. I need to do this dynamically i.e users can define Schedule expression and add this to lambda via user web interface. I am using Java SDK

1 Answer 1

1

To create a CloudWatch Event rule, you can use the PutRule API operation to create the rule and then add the Lambda function as the target using PutTargets. The Lambda function should also allow CloudWatch Events to invoke the function in its function policy.

Sign up to request clarification or add additional context in comments.

3 Comments

Can you provide some tutorial link?
I've linked the two API operations that you need to use. Since you're using Java, you should find links to the Java SDK methods at the bottom of each of the pages. If you have trouble setting it up, post your code and the error that you get.
Any idea how to provide params.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.