@hackage bloodhound-amazonka-auth0.1.2.0

Adds convenient Amazon ElasticSearch Service authentication to Bloodhound.

bloodhound-amazonka-auth

Build Status Hackage

Adds convenient Amazon ElasticSearch Service authentication to Bloodhound.

Usage

env <- newEnv region Discover
let auth = env ^. envAuth
let hook req = withAuth auth $ ae ->
                 either (liftIO . throwIO) return =<< amazonkaAuthHook ae region req
mgr <- newManager tlsManagerSettings
let bhe = (mkBHEnv server mgr) { bhRequestHook = hook }