'retrieves the alert policy id of the account based on the name of the policy
:param module: the AnsibleModule object
:param alert_policy_name: the alert policy name
:return: alert_policy_id: The alert policy id'

def _get_alert_policy_id(self, module, alert_policy_name):

    alert_policy_id = None
    for policy_id in self.policy_dict:
        if (self.policy_dict.get(policy_id).get('name') == alert_policy_name):
            if (not alert_policy_id):
                alert_policy_id = policy_id
            else:
                return module.fail_json(msg=('multiple    alert    policies    were    found    with    policy    name    :    %s' % alert_policy_name))
    return alert_policy_id
