I'm completely new with boto. I created a Cloudwatch alarm for a certain Kinesis metrics. Now I want to write a Lambda function which can read the alarm status and the corresponding metrics value in every 5 minutes.
Does anyone have experiences with this task and can help me?
following is what I'm currently having in my code:
import json
import boto3
def lambda_handler(event, context):
cloudwatch = boto3.resource('cloudwatch')
alarm = cloudwatch.Alarm('Test')
response = alarm.describe_alarms()
return{reponse}
Thanks a lot