def _yield_attached_role_policies(conn, role_name):
 for resp in _repeat(_list_attached_role_policies, conn, role_name):
  for policy_data in resp['attached_policies']:
   (yield policy_data['policy_arn'])

def _yield_attached_role_policies ( conn , role_name ) : for resp in _repeat ( _list_attached_role_policies , conn , role_name ) : for policy_data in resp [ 'attached_policies' ] : ( yield policy_data [ 'policy_arn' ] )
yield the arns for policies attached to the given role .