def get_all_alarms(region=None, prefix=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 alarms = conn.describe_alarms()
 results = odict.OrderedDict()
 for alarm in alarms:
  alarm = _metric_alarm_to_dict(alarm)
  name = alarm['name']
  if prefix:
   if name.startswith(prefix):
    continue
   name = (prefix + alarm['name'])
  del alarm['name']
  alarm_sls = []
  alarm_sls.append({'name': name})
  alarm_sls.append({'attributes': alarm})
  results[('manage alarm ' + name)] = {'boto_cloudwatch_alarm.present': alarm_sls}
 return _safe_dump(results)

def get_all_alarms ( region = None , prefix = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) alarms = conn . describe_alarms ( ) results = odict . OrderedDict ( ) for alarm in alarms : alarm = _metric_alarm_to_dict ( alarm ) name = alarm [ 'name' ] if prefix : if name . startswith ( prefix ) : continue name = ( prefix + alarm [ 'name' ] ) del alarm [ 'name' ] alarm_sls = [ ] alarm_sls . append ( { 'name' : name } ) alarm_sls . append ( { 'attributes' : alarm } ) results [ ( 'manage alarm ' + name ) ] = { 'boto_cloudwatch_alarm.present' : alarm_sls } return _safe_dump ( results )
get all alarm details .