haxl-amazonka-0.1.1: Haxl data source for accessing AWS services through amazonka.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.DataSource

Synopsis

Documentation

data AWSReq res where Source #

Constructors

AWSReq :: (AWSRequest req, Show req, Typeable req, Eq req) => Maybe Region -> req -> AWSReq (Rs req) 
AWSReqAll :: (AWSPager req, Show req, Typeable req, Eq req) => Maybe Region -> req -> AWSReq [Rs req] 

Instances

DataSourceName AWSReq Source # 

Methods

dataSourceName :: AWSReq a -> Text #

ShowP AWSReq Source # 

Methods

showp :: AWSReq a -> String #

StateKey AWSReq Source # 

Associated Types

data State (AWSReq :: * -> *) :: * #

DataSource u AWSReq Source # 
Eq (AWSReq res) Source # 

Methods

(==) :: AWSReq res -> AWSReq res -> Bool #

(/=) :: AWSReq res -> AWSReq res -> Bool #

Show (AWSReq res) Source # 

Methods

showsPrec :: Int -> AWSReq res -> ShowS #

show :: AWSReq res -> String #

showList :: [AWSReq res] -> ShowS #

Hashable (AWSReq res) Source # 

Methods

hashWithSalt :: Int -> AWSReq res -> Int #

hash :: AWSReq res -> Int #

data State AWSReq Source # 

initGlobalState :: Env -> State AWSReq Source #

Construct a global state to use in Haxl.

fetchAWS :: (AWSRequest a, Show a, Typeable a, Eq a, Request AWSReq (Rs a)) => a -> GenHaxl u (Rs a) Source #

Sends an AWSRequest.

The result will be cached. This should only be used for read-only access.

uncachedFetchAWS :: (AWSRequest a, Show a, Typeable a, Eq a, Request AWSReq (Rs a)) => a -> GenHaxl u (Rs a) Source #

Uncached version of fetchAWS

fetchAllAWS :: (AWSPager a, Show a, Typeable a, Eq a, Request AWSReq [Rs a]) => a -> GenHaxl u [Rs a] Source #

Sends requests necessary to fetch all result pages of a AWSRequest

The result will be cached. This should only be used for read-only access.

uncachedFetchAllAWS :: (AWSPager a, Show a, Typeable a, Eq a, Request AWSReq [Rs a]) => a -> GenHaxl u [Rs a] Source #

Uncached version of fetchAllAWS

fetchAWSIn :: (AWSRequest a, Show a, Typeable a, Eq a, Request AWSReq (Rs a)) => Region -> a -> GenHaxl u (Rs a) Source #

Sends an AWSRequest in a specific region.

The result will be cached. This should only be used for read-only access.

uncachedFetchAWSIn :: (AWSRequest a, Show a, Typeable a, Eq a, Request AWSReq (Rs a)) => Region -> a -> GenHaxl u (Rs a) Source #

Uncached version of fetchAWSIn

fetchAllAWSIn :: (AWSPager a, Show a, Typeable a, Eq a, Request AWSReq [Rs a]) => Region -> a -> GenHaxl u [Rs a] Source #

Sends requests necessary to fetch all result pages of a AWSRequest in a specific region.

The result will be cached. This should only be used for read-only access.

uncachedFetchAllAWSIn :: (AWSPager a, Show a, Typeable a, Eq a, Request AWSReq [Rs a]) => Region -> a -> GenHaxl u [Rs a] Source #

Uncached version of fetchAllAWSIn