I want to trigger a lambda function based on rule added in cloudwatch event. I saw an example of doing it in console like this,
{
"detail-type": [
"Glue Crawler State Change"
],
"source": [
"aws.glue"
],
"detail": {
"crawlerName": [
"MyTestCrawl"
],
"state": [
"Succeeded"
]
}
}
I want to add my lambda function as target. Is there a way to do it using boto3?