in cwoperator/operator_handler.py [0:0]
def create_composit_fn(body, spec, **kwargs):
""" create and update action
Build payload for boto3 put composit alarm call. """
logging.info("body: %s", str(body))
logging.info("spec: %s", str(spec))
alarm = obj_parser.build_composit_alarm_body(body, spec)
cloudwatch.put_cloudwatch_composit_alarm(alarm)
alarm_name = alarm["AlarmName"]
return {'message': f"{alarm_name} created"}