Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Defines the core AST, logic and interpreters for AWS behaviour.
- data Command r where
- CheckF :: (Bool -> r) -> Command r
- DynF :: Dynamic -> (ByteString -> r) -> Command r
- MetaF :: Metadata -> (ByteString -> r) -> Command r
- UserF :: (Maybe ByteString -> r) -> Command r
- SignF :: (AWSPresigner (Sg s), AWSRequest a) => Service s -> UTCTime -> Seconds -> a -> (ClientRequest -> r) -> Command r
- SendF :: (AWSSigner (Sg s), AWSRequest a) => Service s -> a -> (Rs a -> r) -> Command r
- AwaitF :: (AWSSigner (Sg s), AWSRequest a) => Service s -> Wait a -> a -> (Rs a -> r) -> Command r
- send :: (MonadFree Command m, AWSRequest a) => a -> m (Rs a)
- sendWith :: (MonadFree Command m, AWSSigner (Sg s), AWSRequest a) => (Service (Sv a) -> Service s) -> a -> m (Rs a)
- paginate :: (MonadFree Command m, AWSPager a) => a -> Source m (Rs a)
- paginateWith :: (MonadFree Command m, AWSSigner (Sg s), AWSPager a) => (Service (Sv a) -> Service s) -> a -> Source m (Rs a)
- await :: (MonadFree Command m, AWSRequest a) => Wait a -> a -> m (Rs a)
- awaitWith :: (MonadFree Command m, AWSSigner (Sg s), AWSRequest a) => (Service (Sv a) -> Service s) -> Wait a -> a -> m (Rs a)
- presignURL :: (MonadFree Command m, AWSPresigner (Sg (Sv a)), AWSRequest a) => UTCTime -> Seconds -> a -> m ByteString
- presign :: (MonadFree Command m, AWSPresigner (Sg (Sv a)), AWSRequest a) => UTCTime -> Seconds -> a -> m ClientRequest
- presignWith :: (MonadFree Command m, AWSPresigner (Sg s), AWSRequest a) => (Service (Sv a) -> Service s) -> UTCTime -> Seconds -> a -> m ClientRequest
- isEC2 :: MonadFree Command m => m Bool
- dynamic :: MonadFree Command m => Dynamic -> m ByteString
- metadata :: MonadFree Command m => Metadata -> m ByteString
- userdata :: MonadFree Command m => m (Maybe ByteString)
Documentation
CheckF :: (Bool -> r) -> Command r | |
DynF :: Dynamic -> (ByteString -> r) -> Command r | |
MetaF :: Metadata -> (ByteString -> r) -> Command r | |
UserF :: (Maybe ByteString -> r) -> Command r | |
SignF :: (AWSPresigner (Sg s), AWSRequest a) => Service s -> UTCTime -> Seconds -> a -> (ClientRequest -> r) -> Command r | |
SendF :: (AWSSigner (Sg s), AWSRequest a) => Service s -> a -> (Rs a -> r) -> Command r | |
AwaitF :: (AWSSigner (Sg s), AWSRequest a) => Service s -> Wait a -> a -> (Rs a -> r) -> Command r |
send :: (MonadFree Command m, AWSRequest a) => a -> m (Rs a) Source
Send a request, returning the associated response if successful.
See: sendWith
paginate :: (MonadFree Command m, AWSPager a) => a -> Source m (Rs a) Source
Repeatedly send a request, automatically setting markers and paginating over multiple responses while available.
See: paginateWith
:: (MonadFree Command m, AWSPresigner (Sg (Sv a)), AWSRequest a) | |
=> UTCTime | Signing time. |
-> Seconds | Expiry time. |
-> a | Request to presign. |
-> m ByteString |
Presign an URL that is valid from the specified time until the number of seconds expiry has elapsed.
See: presign
, presignWith
:: (MonadFree Command m, AWSPresigner (Sg (Sv a)), AWSRequest a) | |
=> UTCTime | Signing time. |
-> Seconds | Expiry time. |
-> a | Request to presign. |
-> m ClientRequest |
Presign an HTTP request that is valid from the specified time until the number of seconds expiry has elapsed.
See: presignWith
:: (MonadFree Command m, AWSPresigner (Sg s), AWSRequest a) | |
=> (Service (Sv a) -> Service s) | Function to modify the service configuration. |
-> UTCTime | Signing time. |
-> Seconds | Expiry time. |
-> a | Request to presign. |
-> m ClientRequest |