How to run a cicode function when any alarm occurs?

i would like to run a cicode function which excute a python function to send text message via Amazon SNS services.

i put a cicode function inside Alarm category in the area which says  ON Action. but didn't work.

any help would be appreciated.