amazonka-mtl-0.1.1.0: MTL-style type-class and deriving-via newtypes for Amazonka
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Monad.AWS.Class

Synopsis

Documentation

class Monad m => MonadAWS m where Source #

Typeclass for making AWS requests via Amazonka

For out-of-the-box transformers, see:

For DerivingVia usage, see:

Methods

sendEither :: (AWSRequest a, Typeable a, Typeable (AWSResponse a)) => a -> m (Either Error (AWSResponse a)) Source #

The type-class version of sendEither.

Since: 0.1.0.0

awaitEither :: (AWSRequest a, Typeable a) => Wait a -> a -> m (Either Error Accept) Source #

The type-class version of awaitEither.

Since: 0.1.0.0

withAuth :: (AuthEnv -> m a) -> m a Source #

Supply the current credentials to the given action.

Since: 0.1.1.0

localEnv :: (Env -> Env) -> m a -> m a Source #

Run the given action with a modified Env

For instances that supply Env via Reader, this should behave like local.

Since: 0.1.1.0

Instances

Instances details
MonadIO m => MonadAWS (EnvT m) Source # 
Instance details

Defined in Control.Monad.AWS.EnvT

Methods

sendEither :: (AWSRequest a, Typeable a, Typeable (AWSResponse a)) => a -> EnvT m (Either Error (AWSResponse a)) Source #

awaitEither :: (AWSRequest a, Typeable a) => Wait a -> a -> EnvT m (Either Error Accept) Source #

withAuth :: (AuthEnv -> EnvT m a) -> EnvT m a Source #

localEnv :: (Env -> Env) -> EnvT m a -> EnvT m a Source #

MonadIO m => MonadAWS (MockT m) Source # 
Instance details

Defined in Control.Monad.AWS.MockT

(MonadIO m, MonadReader env m, HasMatchers env) => MonadAWS (MockAWS m) Source # 
Instance details

Defined in Control.Monad.AWS.ViaMock

(MonadResource m, MonadReader env m, HasEnv env) => MonadAWS (ReaderAWS m) Source # 
Instance details

Defined in Control.Monad.AWS.ViaReader