I am trying to create a cloudwatch rule to trigger my lambda function using java aws cdk. I found something like below but it give me error.
Code:
Rule