{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Config.DescribePendingAggregationRequests
(
DescribePendingAggregationRequests (..),
newDescribePendingAggregationRequests,
describePendingAggregationRequests_nextToken,
describePendingAggregationRequests_limit,
DescribePendingAggregationRequestsResponse (..),
newDescribePendingAggregationRequestsResponse,
describePendingAggregationRequestsResponse_nextToken,
describePendingAggregationRequestsResponse_pendingAggregationRequests,
describePendingAggregationRequestsResponse_httpStatus,
)
where
import Amazonka.Config.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribePendingAggregationRequests = DescribePendingAggregationRequests'
{
DescribePendingAggregationRequests -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribePendingAggregationRequests -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural
}
deriving (DescribePendingAggregationRequests
-> DescribePendingAggregationRequests -> Bool
(DescribePendingAggregationRequests
-> DescribePendingAggregationRequests -> Bool)
-> (DescribePendingAggregationRequests
-> DescribePendingAggregationRequests -> Bool)
-> Eq DescribePendingAggregationRequests
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePendingAggregationRequests
-> DescribePendingAggregationRequests -> Bool
$c/= :: DescribePendingAggregationRequests
-> DescribePendingAggregationRequests -> Bool
== :: DescribePendingAggregationRequests
-> DescribePendingAggregationRequests -> Bool
$c== :: DescribePendingAggregationRequests
-> DescribePendingAggregationRequests -> Bool
Prelude.Eq, ReadPrec [DescribePendingAggregationRequests]
ReadPrec DescribePendingAggregationRequests
Int -> ReadS DescribePendingAggregationRequests
ReadS [DescribePendingAggregationRequests]
(Int -> ReadS DescribePendingAggregationRequests)
-> ReadS [DescribePendingAggregationRequests]
-> ReadPrec DescribePendingAggregationRequests
-> ReadPrec [DescribePendingAggregationRequests]
-> Read DescribePendingAggregationRequests
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePendingAggregationRequests]
$creadListPrec :: ReadPrec [DescribePendingAggregationRequests]
readPrec :: ReadPrec DescribePendingAggregationRequests
$creadPrec :: ReadPrec DescribePendingAggregationRequests
readList :: ReadS [DescribePendingAggregationRequests]
$creadList :: ReadS [DescribePendingAggregationRequests]
readsPrec :: Int -> ReadS DescribePendingAggregationRequests
$creadsPrec :: Int -> ReadS DescribePendingAggregationRequests
Prelude.Read, Int -> DescribePendingAggregationRequests -> ShowS
[DescribePendingAggregationRequests] -> ShowS
DescribePendingAggregationRequests -> String
(Int -> DescribePendingAggregationRequests -> ShowS)
-> (DescribePendingAggregationRequests -> String)
-> ([DescribePendingAggregationRequests] -> ShowS)
-> Show DescribePendingAggregationRequests
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePendingAggregationRequests] -> ShowS
$cshowList :: [DescribePendingAggregationRequests] -> ShowS
show :: DescribePendingAggregationRequests -> String
$cshow :: DescribePendingAggregationRequests -> String
showsPrec :: Int -> DescribePendingAggregationRequests -> ShowS
$cshowsPrec :: Int -> DescribePendingAggregationRequests -> ShowS
Prelude.Show, (forall x.
DescribePendingAggregationRequests
-> Rep DescribePendingAggregationRequests x)
-> (forall x.
Rep DescribePendingAggregationRequests x
-> DescribePendingAggregationRequests)
-> Generic DescribePendingAggregationRequests
forall x.
Rep DescribePendingAggregationRequests x
-> DescribePendingAggregationRequests
forall x.
DescribePendingAggregationRequests
-> Rep DescribePendingAggregationRequests x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePendingAggregationRequests x
-> DescribePendingAggregationRequests
$cfrom :: forall x.
DescribePendingAggregationRequests
-> Rep DescribePendingAggregationRequests x
Prelude.Generic)
newDescribePendingAggregationRequests ::
DescribePendingAggregationRequests
newDescribePendingAggregationRequests :: DescribePendingAggregationRequests
newDescribePendingAggregationRequests =
DescribePendingAggregationRequests' :: Maybe Text -> Maybe Natural -> DescribePendingAggregationRequests
DescribePendingAggregationRequests'
{ $sel:nextToken:DescribePendingAggregationRequests' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:DescribePendingAggregationRequests' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describePendingAggregationRequests_nextToken :: Lens.Lens' DescribePendingAggregationRequests (Prelude.Maybe Prelude.Text)
describePendingAggregationRequests_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribePendingAggregationRequests
-> f DescribePendingAggregationRequests
describePendingAggregationRequests_nextToken = (DescribePendingAggregationRequests -> Maybe Text)
-> (DescribePendingAggregationRequests
-> Maybe Text -> DescribePendingAggregationRequests)
-> Lens
DescribePendingAggregationRequests
DescribePendingAggregationRequests
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingAggregationRequests' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribePendingAggregationRequests' :: DescribePendingAggregationRequests -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribePendingAggregationRequests
s@DescribePendingAggregationRequests' {} Maybe Text
a -> DescribePendingAggregationRequests
s {$sel:nextToken:DescribePendingAggregationRequests' :: Maybe Text
nextToken = Maybe Text
a} :: DescribePendingAggregationRequests)
describePendingAggregationRequests_limit :: Lens.Lens' DescribePendingAggregationRequests (Prelude.Maybe Prelude.Natural)
describePendingAggregationRequests_limit :: (Maybe Natural -> f (Maybe Natural))
-> DescribePendingAggregationRequests
-> f DescribePendingAggregationRequests
describePendingAggregationRequests_limit = (DescribePendingAggregationRequests -> Maybe Natural)
-> (DescribePendingAggregationRequests
-> Maybe Natural -> DescribePendingAggregationRequests)
-> Lens
DescribePendingAggregationRequests
DescribePendingAggregationRequests
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingAggregationRequests' {Maybe Natural
limit :: Maybe Natural
$sel:limit:DescribePendingAggregationRequests' :: DescribePendingAggregationRequests -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: DescribePendingAggregationRequests
s@DescribePendingAggregationRequests' {} Maybe Natural
a -> DescribePendingAggregationRequests
s {$sel:limit:DescribePendingAggregationRequests' :: Maybe Natural
limit = Maybe Natural
a} :: DescribePendingAggregationRequests)
instance
Core.AWSPager
DescribePendingAggregationRequests
where
page :: DescribePendingAggregationRequests
-> AWSResponse DescribePendingAggregationRequests
-> Maybe DescribePendingAggregationRequests
page DescribePendingAggregationRequests
rq AWSResponse DescribePendingAggregationRequests
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribePendingAggregationRequests
DescribePendingAggregationRequestsResponse
rs
DescribePendingAggregationRequestsResponse
-> Getting
(First Text) DescribePendingAggregationRequestsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribePendingAggregationRequestsResponse
-> Const (First Text) DescribePendingAggregationRequestsResponse
Lens' DescribePendingAggregationRequestsResponse (Maybe Text)
describePendingAggregationRequestsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribePendingAggregationRequestsResponse
-> Const (First Text) DescribePendingAggregationRequestsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribePendingAggregationRequestsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribePendingAggregationRequests
forall a. Maybe a
Prelude.Nothing
| Maybe [PendingAggregationRequest] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribePendingAggregationRequests
DescribePendingAggregationRequestsResponse
rs
DescribePendingAggregationRequestsResponse
-> Getting
(First [PendingAggregationRequest])
DescribePendingAggregationRequestsResponse
[PendingAggregationRequest]
-> Maybe [PendingAggregationRequest]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [PendingAggregationRequest]
-> Const
(First [PendingAggregationRequest])
(Maybe [PendingAggregationRequest]))
-> DescribePendingAggregationRequestsResponse
-> Const
(First [PendingAggregationRequest])
DescribePendingAggregationRequestsResponse
Lens'
DescribePendingAggregationRequestsResponse
(Maybe [PendingAggregationRequest])
describePendingAggregationRequestsResponse_pendingAggregationRequests
((Maybe [PendingAggregationRequest]
-> Const
(First [PendingAggregationRequest])
(Maybe [PendingAggregationRequest]))
-> DescribePendingAggregationRequestsResponse
-> Const
(First [PendingAggregationRequest])
DescribePendingAggregationRequestsResponse)
-> (([PendingAggregationRequest]
-> Const
(First [PendingAggregationRequest]) [PendingAggregationRequest])
-> Maybe [PendingAggregationRequest]
-> Const
(First [PendingAggregationRequest])
(Maybe [PendingAggregationRequest]))
-> Getting
(First [PendingAggregationRequest])
DescribePendingAggregationRequestsResponse
[PendingAggregationRequest]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([PendingAggregationRequest]
-> Const
(First [PendingAggregationRequest]) [PendingAggregationRequest])
-> Maybe [PendingAggregationRequest]
-> Const
(First [PendingAggregationRequest])
(Maybe [PendingAggregationRequest])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribePendingAggregationRequests
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribePendingAggregationRequests
-> Maybe DescribePendingAggregationRequests
forall a. a -> Maybe a
Prelude.Just (DescribePendingAggregationRequests
-> Maybe DescribePendingAggregationRequests)
-> DescribePendingAggregationRequests
-> Maybe DescribePendingAggregationRequests
forall a b. (a -> b) -> a -> b
Prelude.$
DescribePendingAggregationRequests
rq
DescribePendingAggregationRequests
-> (DescribePendingAggregationRequests
-> DescribePendingAggregationRequests)
-> DescribePendingAggregationRequests
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribePendingAggregationRequests
-> Identity DescribePendingAggregationRequests
Lens
DescribePendingAggregationRequests
DescribePendingAggregationRequests
(Maybe Text)
(Maybe Text)
describePendingAggregationRequests_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribePendingAggregationRequests
-> Identity DescribePendingAggregationRequests)
-> Maybe Text
-> DescribePendingAggregationRequests
-> DescribePendingAggregationRequests
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribePendingAggregationRequests
DescribePendingAggregationRequestsResponse
rs
DescribePendingAggregationRequestsResponse
-> Getting
(First Text) DescribePendingAggregationRequestsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribePendingAggregationRequestsResponse
-> Const (First Text) DescribePendingAggregationRequestsResponse
Lens' DescribePendingAggregationRequestsResponse (Maybe Text)
describePendingAggregationRequestsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribePendingAggregationRequestsResponse
-> Const (First Text) DescribePendingAggregationRequestsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribePendingAggregationRequestsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
DescribePendingAggregationRequests
where
type
AWSResponse DescribePendingAggregationRequests =
DescribePendingAggregationRequestsResponse
request :: DescribePendingAggregationRequests
-> Request DescribePendingAggregationRequests
request = Service
-> DescribePendingAggregationRequests
-> Request DescribePendingAggregationRequests
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribePendingAggregationRequests
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribePendingAggregationRequests)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribePendingAggregationRequests))
-> Logger
-> Service
-> Proxy DescribePendingAggregationRequests
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribePendingAggregationRequests)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe [PendingAggregationRequest]
-> Int
-> DescribePendingAggregationRequestsResponse
DescribePendingAggregationRequestsResponse'
(Maybe Text
-> Maybe [PendingAggregationRequest]
-> Int
-> DescribePendingAggregationRequestsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [PendingAggregationRequest]
-> Int -> DescribePendingAggregationRequestsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either
String
(Maybe [PendingAggregationRequest]
-> Int -> DescribePendingAggregationRequestsResponse)
-> Either String (Maybe [PendingAggregationRequest])
-> Either
String (Int -> DescribePendingAggregationRequestsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [PendingAggregationRequest]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PendingAggregationRequests"
Either String (Maybe (Maybe [PendingAggregationRequest]))
-> Maybe [PendingAggregationRequest]
-> Either String (Maybe [PendingAggregationRequest])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PendingAggregationRequest]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DescribePendingAggregationRequestsResponse)
-> Either String Int
-> Either String DescribePendingAggregationRequestsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
DescribePendingAggregationRequests
instance
Prelude.NFData
DescribePendingAggregationRequests
instance
Core.ToHeaders
DescribePendingAggregationRequests
where
toHeaders :: DescribePendingAggregationRequests -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribePendingAggregationRequests -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"StarlingDoveService.DescribePendingAggregationRequests" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Core.ToJSON
DescribePendingAggregationRequests
where
toJSON :: DescribePendingAggregationRequests -> Value
toJSON DescribePendingAggregationRequests' {Maybe Natural
Maybe Text
limit :: Maybe Natural
nextToken :: Maybe Text
$sel:limit:DescribePendingAggregationRequests' :: DescribePendingAggregationRequests -> Maybe Natural
$sel:nextToken:DescribePendingAggregationRequests' :: DescribePendingAggregationRequests -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"Limit" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit
]
)
instance
Core.ToPath
DescribePendingAggregationRequests
where
toPath :: DescribePendingAggregationRequests -> ByteString
toPath = ByteString -> DescribePendingAggregationRequests -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribePendingAggregationRequests
where
toQuery :: DescribePendingAggregationRequests -> QueryString
toQuery = QueryString -> DescribePendingAggregationRequests -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribePendingAggregationRequestsResponse = DescribePendingAggregationRequestsResponse'
{
DescribePendingAggregationRequestsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribePendingAggregationRequestsResponse
-> Maybe [PendingAggregationRequest]
pendingAggregationRequests :: Prelude.Maybe [PendingAggregationRequest],
DescribePendingAggregationRequestsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribePendingAggregationRequestsResponse
-> DescribePendingAggregationRequestsResponse -> Bool
(DescribePendingAggregationRequestsResponse
-> DescribePendingAggregationRequestsResponse -> Bool)
-> (DescribePendingAggregationRequestsResponse
-> DescribePendingAggregationRequestsResponse -> Bool)
-> Eq DescribePendingAggregationRequestsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePendingAggregationRequestsResponse
-> DescribePendingAggregationRequestsResponse -> Bool
$c/= :: DescribePendingAggregationRequestsResponse
-> DescribePendingAggregationRequestsResponse -> Bool
== :: DescribePendingAggregationRequestsResponse
-> DescribePendingAggregationRequestsResponse -> Bool
$c== :: DescribePendingAggregationRequestsResponse
-> DescribePendingAggregationRequestsResponse -> Bool
Prelude.Eq, ReadPrec [DescribePendingAggregationRequestsResponse]
ReadPrec DescribePendingAggregationRequestsResponse
Int -> ReadS DescribePendingAggregationRequestsResponse
ReadS [DescribePendingAggregationRequestsResponse]
(Int -> ReadS DescribePendingAggregationRequestsResponse)
-> ReadS [DescribePendingAggregationRequestsResponse]
-> ReadPrec DescribePendingAggregationRequestsResponse
-> ReadPrec [DescribePendingAggregationRequestsResponse]
-> Read DescribePendingAggregationRequestsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePendingAggregationRequestsResponse]
$creadListPrec :: ReadPrec [DescribePendingAggregationRequestsResponse]
readPrec :: ReadPrec DescribePendingAggregationRequestsResponse
$creadPrec :: ReadPrec DescribePendingAggregationRequestsResponse
readList :: ReadS [DescribePendingAggregationRequestsResponse]
$creadList :: ReadS [DescribePendingAggregationRequestsResponse]
readsPrec :: Int -> ReadS DescribePendingAggregationRequestsResponse
$creadsPrec :: Int -> ReadS DescribePendingAggregationRequestsResponse
Prelude.Read, Int -> DescribePendingAggregationRequestsResponse -> ShowS
[DescribePendingAggregationRequestsResponse] -> ShowS
DescribePendingAggregationRequestsResponse -> String
(Int -> DescribePendingAggregationRequestsResponse -> ShowS)
-> (DescribePendingAggregationRequestsResponse -> String)
-> ([DescribePendingAggregationRequestsResponse] -> ShowS)
-> Show DescribePendingAggregationRequestsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePendingAggregationRequestsResponse] -> ShowS
$cshowList :: [DescribePendingAggregationRequestsResponse] -> ShowS
show :: DescribePendingAggregationRequestsResponse -> String
$cshow :: DescribePendingAggregationRequestsResponse -> String
showsPrec :: Int -> DescribePendingAggregationRequestsResponse -> ShowS
$cshowsPrec :: Int -> DescribePendingAggregationRequestsResponse -> ShowS
Prelude.Show, (forall x.
DescribePendingAggregationRequestsResponse
-> Rep DescribePendingAggregationRequestsResponse x)
-> (forall x.
Rep DescribePendingAggregationRequestsResponse x
-> DescribePendingAggregationRequestsResponse)
-> Generic DescribePendingAggregationRequestsResponse
forall x.
Rep DescribePendingAggregationRequestsResponse x
-> DescribePendingAggregationRequestsResponse
forall x.
DescribePendingAggregationRequestsResponse
-> Rep DescribePendingAggregationRequestsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePendingAggregationRequestsResponse x
-> DescribePendingAggregationRequestsResponse
$cfrom :: forall x.
DescribePendingAggregationRequestsResponse
-> Rep DescribePendingAggregationRequestsResponse x
Prelude.Generic)
newDescribePendingAggregationRequestsResponse ::
Prelude.Int ->
DescribePendingAggregationRequestsResponse
newDescribePendingAggregationRequestsResponse :: Int -> DescribePendingAggregationRequestsResponse
newDescribePendingAggregationRequestsResponse
Int
pHttpStatus_ =
DescribePendingAggregationRequestsResponse' :: Maybe Text
-> Maybe [PendingAggregationRequest]
-> Int
-> DescribePendingAggregationRequestsResponse
DescribePendingAggregationRequestsResponse'
{ $sel:nextToken:DescribePendingAggregationRequestsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pendingAggregationRequests:DescribePendingAggregationRequestsResponse' :: Maybe [PendingAggregationRequest]
pendingAggregationRequests =
Maybe [PendingAggregationRequest]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribePendingAggregationRequestsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describePendingAggregationRequestsResponse_nextToken :: Lens.Lens' DescribePendingAggregationRequestsResponse (Prelude.Maybe Prelude.Text)
describePendingAggregationRequestsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribePendingAggregationRequestsResponse
-> f DescribePendingAggregationRequestsResponse
describePendingAggregationRequestsResponse_nextToken = (DescribePendingAggregationRequestsResponse -> Maybe Text)
-> (DescribePendingAggregationRequestsResponse
-> Maybe Text -> DescribePendingAggregationRequestsResponse)
-> Lens' DescribePendingAggregationRequestsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingAggregationRequestsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribePendingAggregationRequestsResponse' :: DescribePendingAggregationRequestsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribePendingAggregationRequestsResponse
s@DescribePendingAggregationRequestsResponse' {} Maybe Text
a -> DescribePendingAggregationRequestsResponse
s {$sel:nextToken:DescribePendingAggregationRequestsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribePendingAggregationRequestsResponse)
describePendingAggregationRequestsResponse_pendingAggregationRequests :: Lens.Lens' DescribePendingAggregationRequestsResponse (Prelude.Maybe [PendingAggregationRequest])
describePendingAggregationRequestsResponse_pendingAggregationRequests :: (Maybe [PendingAggregationRequest]
-> f (Maybe [PendingAggregationRequest]))
-> DescribePendingAggregationRequestsResponse
-> f DescribePendingAggregationRequestsResponse
describePendingAggregationRequestsResponse_pendingAggregationRequests = (DescribePendingAggregationRequestsResponse
-> Maybe [PendingAggregationRequest])
-> (DescribePendingAggregationRequestsResponse
-> Maybe [PendingAggregationRequest]
-> DescribePendingAggregationRequestsResponse)
-> Lens'
DescribePendingAggregationRequestsResponse
(Maybe [PendingAggregationRequest])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingAggregationRequestsResponse' {Maybe [PendingAggregationRequest]
pendingAggregationRequests :: Maybe [PendingAggregationRequest]
$sel:pendingAggregationRequests:DescribePendingAggregationRequestsResponse' :: DescribePendingAggregationRequestsResponse
-> Maybe [PendingAggregationRequest]
pendingAggregationRequests} -> Maybe [PendingAggregationRequest]
pendingAggregationRequests) (\s :: DescribePendingAggregationRequestsResponse
s@DescribePendingAggregationRequestsResponse' {} Maybe [PendingAggregationRequest]
a -> DescribePendingAggregationRequestsResponse
s {$sel:pendingAggregationRequests:DescribePendingAggregationRequestsResponse' :: Maybe [PendingAggregationRequest]
pendingAggregationRequests = Maybe [PendingAggregationRequest]
a} :: DescribePendingAggregationRequestsResponse) ((Maybe [PendingAggregationRequest]
-> f (Maybe [PendingAggregationRequest]))
-> DescribePendingAggregationRequestsResponse
-> f DescribePendingAggregationRequestsResponse)
-> ((Maybe [PendingAggregationRequest]
-> f (Maybe [PendingAggregationRequest]))
-> Maybe [PendingAggregationRequest]
-> f (Maybe [PendingAggregationRequest]))
-> (Maybe [PendingAggregationRequest]
-> f (Maybe [PendingAggregationRequest]))
-> DescribePendingAggregationRequestsResponse
-> f DescribePendingAggregationRequestsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PendingAggregationRequest]
[PendingAggregationRequest]
[PendingAggregationRequest]
[PendingAggregationRequest]
-> Iso
(Maybe [PendingAggregationRequest])
(Maybe [PendingAggregationRequest])
(Maybe [PendingAggregationRequest])
(Maybe [PendingAggregationRequest])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
[PendingAggregationRequest]
[PendingAggregationRequest]
[PendingAggregationRequest]
[PendingAggregationRequest]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describePendingAggregationRequestsResponse_httpStatus :: Lens.Lens' DescribePendingAggregationRequestsResponse Prelude.Int
describePendingAggregationRequestsResponse_httpStatus :: (Int -> f Int)
-> DescribePendingAggregationRequestsResponse
-> f DescribePendingAggregationRequestsResponse
describePendingAggregationRequestsResponse_httpStatus = (DescribePendingAggregationRequestsResponse -> Int)
-> (DescribePendingAggregationRequestsResponse
-> Int -> DescribePendingAggregationRequestsResponse)
-> Lens
DescribePendingAggregationRequestsResponse
DescribePendingAggregationRequestsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingAggregationRequestsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribePendingAggregationRequestsResponse' :: DescribePendingAggregationRequestsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribePendingAggregationRequestsResponse
s@DescribePendingAggregationRequestsResponse' {} Int
a -> DescribePendingAggregationRequestsResponse
s {$sel:httpStatus:DescribePendingAggregationRequestsResponse' :: Int
httpStatus = Int
a} :: DescribePendingAggregationRequestsResponse)
instance
Prelude.NFData
DescribePendingAggregationRequestsResponse