this is my function define-
monitor-check-pc:
handler: main.healthcheckHandler
what should I write inside cloudformation-
MonitorCheckPCScheduledRule: # New CloudWatch Event Rule for ACP Lambda
Type: AWS::Events::Rule
Properties:
Description: "ScheduledRule for PC Lambda"
Name: mig-pc-monitor-check-trigger
ScheduleExpression: rate(5 minutes)
State: ENABLED
Targets:
- Arn:
Fn::GetAtt:
- MonitorDashcheckDashpcLambdaFunction
- Arn
Id: monitorCheckPCScheduledRule