def get_group_policy(group_name, policy_name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  info = conn.get_group_policy(group_name, policy_name)
  log.debug('info for group policy is : {0}'.format(info))
  if (not info):
   return False
  info = info.get_group_policy_response.get_group_policy_result.policy_document
  info = _unquote(info)
  info = json.loads(info, object_pairs_hook=odict.OrderedDict)
  return info
 except boto.exception.BotoServerError as e:
  log.debug(e)
  msg = 'Failed to get group {0} info.'
  log.error(msg.format(group_name))
  return False

def get_group_policy ( group_name , policy_name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : info = conn . get_group_policy ( group_name , policy_name ) log . debug ( 'info for group policy is : {0}' . format ( info ) ) if ( not info ) : return False info = info . get_group_policy_response . get_group_policy_result . policy_document info = _unquote ( info ) info = json . loads ( info , object_pairs_hook = odict . OrderedDict ) return info except boto . exception . BotoServerError as e : log . debug ( e ) msg = 'Failed to get group {0} info.' log . error ( msg . format ( group_name ) ) return False
retrieves the specified policy document for the specified group .