def get_saml_provider(name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  provider = conn.get_saml_provider(name)
  return provider['get_saml_provider_response']['get_saml_provider_result']['saml_metadata_document']
 except boto.exception.BotoServerError as e:
  aws = __utils__['boto.get_error'](e)
  log.debug(aws)
  msg = 'Failed to get SAML provider document.'
  log.error(msg)
  return False

def get_saml_provider ( name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : provider = conn . get_saml_provider ( name ) return provider [ 'get_saml_provider_response' ] [ 'get_saml_provider_result' ] [ 'saml_metadata_document' ] except boto . exception . BotoServerError as e : aws = __utils__ [ 'boto.get_error' ] ( e ) log . debug ( aws ) msg = 'Failed to get SAML provider document.' log . error ( msg ) return False
get saml provider document .