{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Config.DescribePendingAggregationRequests
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a list of all pending aggregation requests.
--
-- This operation returns paginated results.
module Amazonka.Config.DescribePendingAggregationRequests
  ( -- * Creating a Request
    DescribePendingAggregationRequests (..),
    newDescribePendingAggregationRequests,

    -- * Request Lenses
    describePendingAggregationRequests_limit,
    describePendingAggregationRequests_nextToken,

    -- * Destructuring the Response
    DescribePendingAggregationRequestsResponse (..),
    newDescribePendingAggregationRequestsResponse,

    -- * Response Lenses
    describePendingAggregationRequestsResponse_nextToken,
    describePendingAggregationRequestsResponse_pendingAggregationRequests,
    describePendingAggregationRequestsResponse_httpStatus,
  )
where

import Amazonka.Config.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribePendingAggregationRequests' smart constructor.
data DescribePendingAggregationRequests = DescribePendingAggregationRequests'
  { -- | The maximum number of evaluation results returned on each page. The
    -- default is maximum. If you specify 0, Config uses the default.
    DescribePendingAggregationRequests -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
    -- | The @nextToken@ string returned on a previous page that you use to get
    -- the next page of results in a paginated response.
    DescribePendingAggregationRequests -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (DescribePendingAggregationRequests
-> DescribePendingAggregationRequests -> Bool
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]
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
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.
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)

-- |
-- Create a value of 'DescribePendingAggregationRequests' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'limit', 'describePendingAggregationRequests_limit' - The maximum number of evaluation results returned on each page. The
-- default is maximum. If you specify 0, Config uses the default.
--
-- 'nextToken', 'describePendingAggregationRequests_nextToken' - The @nextToken@ string returned on a previous page that you use to get
-- the next page of results in a paginated response.
newDescribePendingAggregationRequests ::
  DescribePendingAggregationRequests
newDescribePendingAggregationRequests :: DescribePendingAggregationRequests
newDescribePendingAggregationRequests =
  DescribePendingAggregationRequests'
    { $sel:limit:DescribePendingAggregationRequests' :: Maybe Natural
limit =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:DescribePendingAggregationRequests' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of evaluation results returned on each page. The
-- default is maximum. If you specify 0, Config uses the default.
describePendingAggregationRequests_limit :: Lens.Lens' DescribePendingAggregationRequests (Prelude.Maybe Prelude.Natural)
describePendingAggregationRequests_limit :: Lens' DescribePendingAggregationRequests (Maybe Natural)
describePendingAggregationRequests_limit = 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)

-- | The @nextToken@ string returned on a previous page that you use to get
-- the next page of results in a paginated response.
describePendingAggregationRequests_nextToken :: Lens.Lens' DescribePendingAggregationRequests (Prelude.Maybe Prelude.Text)
describePendingAggregationRequests_nextToken :: Lens' DescribePendingAggregationRequests (Maybe Text)
describePendingAggregationRequests_nextToken = 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)

instance
  Core.AWSPager
    DescribePendingAggregationRequests
  where
  page :: DescribePendingAggregationRequests
-> AWSResponse DescribePendingAggregationRequests
-> Maybe DescribePendingAggregationRequests
page DescribePendingAggregationRequests
rq AWSResponse DescribePendingAggregationRequests
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribePendingAggregationRequests
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribePendingAggregationRequestsResponse (Maybe Text)
describePendingAggregationRequestsResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribePendingAggregationRequests
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
  DescribePendingAggregationRequestsResponse
  (Maybe [PendingAggregationRequest])
describePendingAggregationRequestsResponse_pendingAggregationRequests
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ DescribePendingAggregationRequests
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribePendingAggregationRequests (Maybe Text)
describePendingAggregationRequests_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribePendingAggregationRequests
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribePendingAggregationRequestsResponse (Maybe Text)
describePendingAggregationRequestsResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    DescribePendingAggregationRequests
  where
  type
    AWSResponse DescribePendingAggregationRequests =
      DescribePendingAggregationRequestsResponse
  request :: (Service -> Service)
-> DescribePendingAggregationRequests
-> Request DescribePendingAggregationRequests
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribePendingAggregationRequests
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribePendingAggregationRequests)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> 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'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"PendingAggregationRequests"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DescribePendingAggregationRequests
  where
  hashWithSalt :: Int -> DescribePendingAggregationRequests -> Int
hashWithSalt
    Int
_salt
    DescribePendingAggregationRequests' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
limit :: Maybe Natural
$sel:nextToken:DescribePendingAggregationRequests' :: DescribePendingAggregationRequests -> Maybe Text
$sel:limit:DescribePendingAggregationRequests' :: DescribePendingAggregationRequests -> Maybe Natural
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
limit
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance
  Prelude.NFData
    DescribePendingAggregationRequests
  where
  rnf :: DescribePendingAggregationRequests -> ()
rnf DescribePendingAggregationRequests' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
limit :: Maybe Natural
$sel:nextToken:DescribePendingAggregationRequests' :: DescribePendingAggregationRequests -> Maybe Text
$sel:limit:DescribePendingAggregationRequests' :: DescribePendingAggregationRequests -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
limit
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken

instance
  Data.ToHeaders
    DescribePendingAggregationRequests
  where
  toHeaders :: DescribePendingAggregationRequests -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"StarlingDoveService.DescribePendingAggregationRequests" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Data.ToJSON
    DescribePendingAggregationRequests
  where
  toJSON :: DescribePendingAggregationRequests -> Value
toJSON DescribePendingAggregationRequests' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
limit :: Maybe Natural
$sel:nextToken:DescribePendingAggregationRequests' :: DescribePendingAggregationRequests -> Maybe Text
$sel:limit:DescribePendingAggregationRequests' :: DescribePendingAggregationRequests -> Maybe Natural
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"Limit" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
limit,
            (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
          ]
      )

instance
  Data.ToPath
    DescribePendingAggregationRequests
  where
  toPath :: DescribePendingAggregationRequests -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Data.ToQuery
    DescribePendingAggregationRequests
  where
  toQuery :: DescribePendingAggregationRequests -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribePendingAggregationRequestsResponse' smart constructor.
data DescribePendingAggregationRequestsResponse = DescribePendingAggregationRequestsResponse'
  { -- | The @nextToken@ string returned on a previous page that you use to get
    -- the next page of results in a paginated response.
    DescribePendingAggregationRequestsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Returns a PendingAggregationRequests object.
    DescribePendingAggregationRequestsResponse
-> Maybe [PendingAggregationRequest]
pendingAggregationRequests :: Prelude.Maybe [PendingAggregationRequest],
    -- | The response's http status code.
    DescribePendingAggregationRequestsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribePendingAggregationRequestsResponse
-> DescribePendingAggregationRequestsResponse -> Bool
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]
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
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.
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)

-- |
-- Create a value of 'DescribePendingAggregationRequestsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'describePendingAggregationRequestsResponse_nextToken' - The @nextToken@ string returned on a previous page that you use to get
-- the next page of results in a paginated response.
--
-- 'pendingAggregationRequests', 'describePendingAggregationRequestsResponse_pendingAggregationRequests' - Returns a PendingAggregationRequests object.
--
-- 'httpStatus', 'describePendingAggregationRequestsResponse_httpStatus' - The response's http status code.
newDescribePendingAggregationRequestsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribePendingAggregationRequestsResponse
newDescribePendingAggregationRequestsResponse :: Int -> DescribePendingAggregationRequestsResponse
newDescribePendingAggregationRequestsResponse
  Int
pHttpStatus_ =
    DescribePendingAggregationRequestsResponse'
      { $sel:nextToken:DescribePendingAggregationRequestsResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:pendingAggregationRequests:DescribePendingAggregationRequestsResponse' :: Maybe [PendingAggregationRequest]
pendingAggregationRequests =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribePendingAggregationRequestsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The @nextToken@ string returned on a previous page that you use to get
-- the next page of results in a paginated response.
describePendingAggregationRequestsResponse_nextToken :: Lens.Lens' DescribePendingAggregationRequestsResponse (Prelude.Maybe Prelude.Text)
describePendingAggregationRequestsResponse_nextToken :: Lens' DescribePendingAggregationRequestsResponse (Maybe Text)
describePendingAggregationRequestsResponse_nextToken = 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)

-- | Returns a PendingAggregationRequests object.
describePendingAggregationRequestsResponse_pendingAggregationRequests :: Lens.Lens' DescribePendingAggregationRequestsResponse (Prelude.Maybe [PendingAggregationRequest])
describePendingAggregationRequestsResponse_pendingAggregationRequests :: Lens'
  DescribePendingAggregationRequestsResponse
  (Maybe [PendingAggregationRequest])
describePendingAggregationRequestsResponse_pendingAggregationRequests = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
describePendingAggregationRequestsResponse_httpStatus :: Lens.Lens' DescribePendingAggregationRequestsResponse Prelude.Int
describePendingAggregationRequestsResponse_httpStatus :: Lens' DescribePendingAggregationRequestsResponse Int
describePendingAggregationRequestsResponse_httpStatus = 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
  where
  rnf :: DescribePendingAggregationRequestsResponse -> ()
rnf DescribePendingAggregationRequestsResponse' {Int
Maybe [PendingAggregationRequest]
Maybe Text
httpStatus :: Int
pendingAggregationRequests :: Maybe [PendingAggregationRequest]
nextToken :: Maybe Text
$sel:httpStatus:DescribePendingAggregationRequestsResponse' :: DescribePendingAggregationRequestsResponse -> Int
$sel:pendingAggregationRequests:DescribePendingAggregationRequestsResponse' :: DescribePendingAggregationRequestsResponse
-> Maybe [PendingAggregationRequest]
$sel:nextToken:DescribePendingAggregationRequestsResponse' :: DescribePendingAggregationRequestsResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [PendingAggregationRequest]
pendingAggregationRequests
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus