Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | This Source Code Form is subject to the terms of |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- type Acceptor a = Request a -> Either Error (ClientResponse (AWSResponse a)) -> Maybe Accept
- data Accept
- data Wait a = Wait {
- _waitName :: ByteString
- _waitAttempts :: Int
- _waitDelay :: Seconds
- _waitAcceptors :: [Acceptor a]
- accept :: Wait a -> Acceptor a
- matchAll :: Eq b => b -> Accept -> Fold (AWSResponse a) b -> Acceptor a
- matchAny :: Eq b => b -> Accept -> Fold (AWSResponse a) b -> Acceptor a
- matchNonEmpty :: Bool -> Accept -> Fold (AWSResponse a) b -> Acceptor a
- matchError :: ErrorCode -> Accept -> Acceptor a
- matchStatus :: Int -> Accept -> Acceptor a
- nonEmptyText :: Fold a Text -> Fold a Bool
Types
type Acceptor a = Request a -> Either Error (ClientResponse (AWSResponse a)) -> Maybe Accept Source #
Timing and acceptance criteria to check fulfillment of a remote operation.
Wait | |
|
Acceptors
Matchers
matchNonEmpty :: Bool -> Accept -> Fold (AWSResponse a) b -> Acceptor a Source #