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 | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- class AWSRequest a => AWSPager a where
- page :: a -> AWSResponse a -> Maybe a
- class AWSTruncated a where
- stop :: AWSTruncated a => a -> Bool
- choice :: (Alternative f, ToText a, ToText b) => (s -> f a) -> (s -> f b) -> Getter s (f Text)
Documentation
class AWSRequest a => AWSPager a where Source #
Specify how an AWSRequest
and it's associated Rs
response can
generate a subsequent request, if available.
page :: a -> AWSResponse a -> Maybe a Source #
class AWSTruncated a where Source #
Generalise IsTruncated and other optional/required response pagination fields.
Instances
AWSTruncated Bool Source # | |
AWSTruncated (Maybe Bool) Source # | |
AWSTruncated (Maybe a) Source # | |
AWSTruncated [a] Source # | |
Defined in Amazonka.Pager | |
AWSTruncated (HashMap k v) Source # | |
stop :: AWSTruncated a => a -> Bool Source #