Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Amazonka.Waiter
Description
Synopsis
- type Acceptor a = Request a -> Either Error (ClientResponse (AWSResponse a)) -> Maybe Accept
- data Accept
- data Wait a = Wait {}
- wait_name :: forall a f. Functor f => (ByteString -> f ByteString) -> Wait a -> f (Wait a)
- wait_attempts :: forall a f. Functor f => (Int -> f Int) -> Wait a -> f (Wait a)
- wait_delay :: forall a f. Functor f => (Seconds -> f Seconds) -> Wait a -> f (Wait a)
- wait_acceptors :: forall a b f. Functor f => ([Acceptor a] -> f [Acceptor b]) -> Wait a -> f (Wait b)
- 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 #
Constructors
AcceptSuccess | |
AcceptFailure | |
AcceptRetry |
Timing and acceptance criteria to check fulfillment of a remote operation.
Lenses
wait_name :: forall a f. Functor f => (ByteString -> f ByteString) -> Wait a -> f (Wait a) Source #
wait_acceptors :: forall a b f. Functor f => ([Acceptor a] -> f [Acceptor b]) -> Wait a -> f (Wait b) Source #
Acceptors
Matchers
matchNonEmpty :: Bool -> Accept -> Fold (AWSResponse a) b -> Acceptor a Source #