def list_attached_user_policies(user_name, path_prefix=None, entity_filter=None, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 params = {'UserName': user_name}
 if (path_prefix is not None):
  params['PathPrefix'] = path_prefix
 policies = []
 try:
  for ret in __utils__['boto.paged_call'](conn.get_response, 'ListAttachedUserPolicies', params, list_marker='AttachedPolicies'):
   policies.extend(ret.get('list_attached_user_policies_response', {}).get('list_attached_user_policies_result', {}).get('attached_policies', []))
  return policies
 except boto.exception.BotoServerError as e:
  log.debug(e)
  msg = 'Failed to list user {0} attached policies.'
  log.error(msg.format(user_name))
  return []

def list_attached_user_policies ( user_name , path_prefix = None , entity_filter = None , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) params = { 'UserName' : user_name } if ( path_prefix is not None ) : params [ 'PathPrefix' ] = path_prefix policies = [ ] try : for ret in __utils__ [ 'boto.paged_call' ] ( conn . get_response , 'ListAttachedUserPolicies' , params , list_marker = 'AttachedPolicies' ) : policies . extend ( ret . get ( 'list_attached_user_policies_response' , { } ) . get ( 'list_attached_user_policies_result' , { } ) . get ( 'attached_policies' , [ ] ) ) return policies except boto . exception . BotoServerError as e : log . debug ( e ) msg = 'Failed to list user {0} attached policies.' log . error ( msg . format ( user_name ) ) return [ ]
list entities attached to the given user .