def get_saml_provider_arn(name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  response = conn.list_saml_providers()
  for saml_provider in response.list_saml_providers_response.list_saml_providers_result.saml_provider_list:
   if saml_provider['arn'].endswith((':saml-provider/' + name)):
    return saml_provider['arn']
  return False
 except boto.exception.BotoServerError as e:
  aws = __utils__['boto.get_error'](e)
  log.debug(aws)
  msg = 'Failed to get ARN of SAML provider {0}.'
  log.error(msg.format(name))
  return False

def get_saml_provider_arn ( name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : response = conn . list_saml_providers ( ) for saml_provider in response . list_saml_providers_response . list_saml_providers_result . saml_provider_list : if saml_provider [ 'arn' ] . endswith ( ( ':saml-provider/' + name ) ) : return saml_provider [ 'arn' ] return False except boto . exception . BotoServerError as e : aws = __utils__ [ 'boto.get_error' ] ( e ) log . debug ( aws ) msg = 'Failed to get ARN of SAML provider {0}.' log . error ( msg . format ( name ) ) return False
get saml provider cli example: .