def get_group_id(name, vpc_id=None, vpc_name=None, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 if name.startswith('sg-'):
  log.debug('group {0} is a group id. get_group_id not called.'.format(name))
  return name
 group = _get_group(conn=conn, name=name, vpc_id=vpc_id, vpc_name=vpc_name, region=region, key=key, keyid=keyid, profile=profile)
 return getattr(group, 'id', None)

def get_group_id ( name , vpc_id = None , vpc_name = None , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) if name . startswith ( 'sg-' ) : log . debug ( 'group {0} is a group id. get_group_id not called.' . format ( name ) ) return name group = _get_group ( conn = conn , name = name , vpc_id = vpc_id , vpc_name = vpc_name , region = region , key = key , keyid = keyid , profile = profile ) return getattr ( group , 'id' , None )
opencl get_group_id() .