def list_saml_providers(region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  providers = []
  info = conn.list_saml_providers()
  for arn in info['list_saml_providers_response']['list_saml_providers_result']['saml_provider_list']:
   providers.append(arn['arn'].rsplit('/', 1)[1])
  return providers
 except boto.exception.BotoServerError as e:
  aws = __utils__['boto.get_error'](e)
  log.debug(aws)
  msg = 'Failed to get list of SAML providers.'
  log.error(msg)
  return False

def list_saml_providers ( region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : providers = [ ] info = conn . list_saml_providers ( ) for arn in info [ 'list_saml_providers_response' ] [ 'list_saml_providers_result' ] [ 'saml_provider_list' ] : providers . append ( arn [ 'arn' ] . rsplit ( '/' , 1 ) [ 1 ] ) return providers except boto . exception . BotoServerError as e : aws = __utils__ [ 'boto.get_error' ] ( e ) log . debug ( aws ) msg = 'Failed to get list of SAML providers.' log . error ( msg ) return False
list saml providers .