def list_role_policies(role_name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  response = conn.list_role_policies(role_name)
  _list = response.list_role_policies_response.list_role_policies_result
  return _list.policy_names
 except boto.exception.BotoServerError as e:
  log.debug(e)
  return []

def list_role_policies ( role_name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : response = conn . list_role_policies ( role_name ) _list = response . list_role_policies_response . list_role_policies_result return _list . policy_names except boto . exception . BotoServerError as e : log . debug ( e ) return [ ]
get a list of policy names from a role .