def launch_configuration_exists(name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  lc = conn.get_all_launch_configurations(names=[name])
  if lc:
   return True
  else:
   msg = 'The launch configuration does not exist in region {0}'.format(region)
   log.debug(msg)
   return False
 except boto.exception.BotoServerError as e:
  log.debug(e)
  return False

def launch_configuration_exists ( name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : lc = conn . get_all_launch_configurations ( names = [ name ] ) if lc : return True else : msg = 'The launch configuration does not exist in region {0}' . format ( region ) log . debug ( msg ) return False except boto . exception . BotoServerError as e : log . debug ( e ) return False
check for a launch configurations existence .