{-# 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.DescribeConfigurationAggregators
(
DescribeConfigurationAggregators (..),
newDescribeConfigurationAggregators,
describeConfigurationAggregators_nextToken,
describeConfigurationAggregators_limit,
describeConfigurationAggregators_configurationAggregatorNames,
DescribeConfigurationAggregatorsResponse (..),
newDescribeConfigurationAggregatorsResponse,
describeConfigurationAggregatorsResponse_nextToken,
describeConfigurationAggregatorsResponse_configurationAggregators,
describeConfigurationAggregatorsResponse_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 DescribeConfigurationAggregators = DescribeConfigurationAggregators'
{
DescribeConfigurationAggregators -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeConfigurationAggregators -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
DescribeConfigurationAggregators -> Maybe [Text]
configurationAggregatorNames :: Prelude.Maybe [Prelude.Text]
}
deriving (DescribeConfigurationAggregators
-> DescribeConfigurationAggregators -> Bool
(DescribeConfigurationAggregators
-> DescribeConfigurationAggregators -> Bool)
-> (DescribeConfigurationAggregators
-> DescribeConfigurationAggregators -> Bool)
-> Eq DescribeConfigurationAggregators
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationAggregators
-> DescribeConfigurationAggregators -> Bool
$c/= :: DescribeConfigurationAggregators
-> DescribeConfigurationAggregators -> Bool
== :: DescribeConfigurationAggregators
-> DescribeConfigurationAggregators -> Bool
$c== :: DescribeConfigurationAggregators
-> DescribeConfigurationAggregators -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationAggregators]
ReadPrec DescribeConfigurationAggregators
Int -> ReadS DescribeConfigurationAggregators
ReadS [DescribeConfigurationAggregators]
(Int -> ReadS DescribeConfigurationAggregators)
-> ReadS [DescribeConfigurationAggregators]
-> ReadPrec DescribeConfigurationAggregators
-> ReadPrec [DescribeConfigurationAggregators]
-> Read DescribeConfigurationAggregators
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationAggregators]
$creadListPrec :: ReadPrec [DescribeConfigurationAggregators]
readPrec :: ReadPrec DescribeConfigurationAggregators
$creadPrec :: ReadPrec DescribeConfigurationAggregators
readList :: ReadS [DescribeConfigurationAggregators]
$creadList :: ReadS [DescribeConfigurationAggregators]
readsPrec :: Int -> ReadS DescribeConfigurationAggregators
$creadsPrec :: Int -> ReadS DescribeConfigurationAggregators
Prelude.Read, Int -> DescribeConfigurationAggregators -> ShowS
[DescribeConfigurationAggregators] -> ShowS
DescribeConfigurationAggregators -> String
(Int -> DescribeConfigurationAggregators -> ShowS)
-> (DescribeConfigurationAggregators -> String)
-> ([DescribeConfigurationAggregators] -> ShowS)
-> Show DescribeConfigurationAggregators
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationAggregators] -> ShowS
$cshowList :: [DescribeConfigurationAggregators] -> ShowS
show :: DescribeConfigurationAggregators -> String
$cshow :: DescribeConfigurationAggregators -> String
showsPrec :: Int -> DescribeConfigurationAggregators -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationAggregators -> ShowS
Prelude.Show, (forall x.
DescribeConfigurationAggregators
-> Rep DescribeConfigurationAggregators x)
-> (forall x.
Rep DescribeConfigurationAggregators x
-> DescribeConfigurationAggregators)
-> Generic DescribeConfigurationAggregators
forall x.
Rep DescribeConfigurationAggregators x
-> DescribeConfigurationAggregators
forall x.
DescribeConfigurationAggregators
-> Rep DescribeConfigurationAggregators x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationAggregators x
-> DescribeConfigurationAggregators
$cfrom :: forall x.
DescribeConfigurationAggregators
-> Rep DescribeConfigurationAggregators x
Prelude.Generic)
newDescribeConfigurationAggregators ::
DescribeConfigurationAggregators
newDescribeConfigurationAggregators :: DescribeConfigurationAggregators
newDescribeConfigurationAggregators =
DescribeConfigurationAggregators' :: Maybe Text
-> Maybe Natural
-> Maybe [Text]
-> DescribeConfigurationAggregators
DescribeConfigurationAggregators'
{ $sel:nextToken:DescribeConfigurationAggregators' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:DescribeConfigurationAggregators' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:configurationAggregatorNames:DescribeConfigurationAggregators' :: Maybe [Text]
configurationAggregatorNames =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing
}
describeConfigurationAggregators_nextToken :: Lens.Lens' DescribeConfigurationAggregators (Prelude.Maybe Prelude.Text)
describeConfigurationAggregators_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeConfigurationAggregators
-> f DescribeConfigurationAggregators
describeConfigurationAggregators_nextToken = (DescribeConfigurationAggregators -> Maybe Text)
-> (DescribeConfigurationAggregators
-> Maybe Text -> DescribeConfigurationAggregators)
-> Lens
DescribeConfigurationAggregators
DescribeConfigurationAggregators
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregators' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeConfigurationAggregators' :: DescribeConfigurationAggregators -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeConfigurationAggregators
s@DescribeConfigurationAggregators' {} Maybe Text
a -> DescribeConfigurationAggregators
s {$sel:nextToken:DescribeConfigurationAggregators' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeConfigurationAggregators)
describeConfigurationAggregators_limit :: Lens.Lens' DescribeConfigurationAggregators (Prelude.Maybe Prelude.Natural)
describeConfigurationAggregators_limit :: (Maybe Natural -> f (Maybe Natural))
-> DescribeConfigurationAggregators
-> f DescribeConfigurationAggregators
describeConfigurationAggregators_limit = (DescribeConfigurationAggregators -> Maybe Natural)
-> (DescribeConfigurationAggregators
-> Maybe Natural -> DescribeConfigurationAggregators)
-> Lens
DescribeConfigurationAggregators
DescribeConfigurationAggregators
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregators' {Maybe Natural
limit :: Maybe Natural
$sel:limit:DescribeConfigurationAggregators' :: DescribeConfigurationAggregators -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: DescribeConfigurationAggregators
s@DescribeConfigurationAggregators' {} Maybe Natural
a -> DescribeConfigurationAggregators
s {$sel:limit:DescribeConfigurationAggregators' :: Maybe Natural
limit = Maybe Natural
a} :: DescribeConfigurationAggregators)
describeConfigurationAggregators_configurationAggregatorNames :: Lens.Lens' DescribeConfigurationAggregators (Prelude.Maybe [Prelude.Text])
describeConfigurationAggregators_configurationAggregatorNames :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeConfigurationAggregators
-> f DescribeConfigurationAggregators
describeConfigurationAggregators_configurationAggregatorNames = (DescribeConfigurationAggregators -> Maybe [Text])
-> (DescribeConfigurationAggregators
-> Maybe [Text] -> DescribeConfigurationAggregators)
-> Lens
DescribeConfigurationAggregators
DescribeConfigurationAggregators
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregators' {Maybe [Text]
configurationAggregatorNames :: Maybe [Text]
$sel:configurationAggregatorNames:DescribeConfigurationAggregators' :: DescribeConfigurationAggregators -> Maybe [Text]
configurationAggregatorNames} -> Maybe [Text]
configurationAggregatorNames) (\s :: DescribeConfigurationAggregators
s@DescribeConfigurationAggregators' {} Maybe [Text]
a -> DescribeConfigurationAggregators
s {$sel:configurationAggregatorNames:DescribeConfigurationAggregators' :: Maybe [Text]
configurationAggregatorNames = Maybe [Text]
a} :: DescribeConfigurationAggregators) ((Maybe [Text] -> f (Maybe [Text]))
-> DescribeConfigurationAggregators
-> f DescribeConfigurationAggregators)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeConfigurationAggregators
-> f DescribeConfigurationAggregators
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Core.AWSPager
DescribeConfigurationAggregators
where
page :: DescribeConfigurationAggregators
-> AWSResponse DescribeConfigurationAggregators
-> Maybe DescribeConfigurationAggregators
page DescribeConfigurationAggregators
rq AWSResponse DescribeConfigurationAggregators
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeConfigurationAggregators
DescribeConfigurationAggregatorsResponse
rs
DescribeConfigurationAggregatorsResponse
-> Getting
(First Text) DescribeConfigurationAggregatorsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeConfigurationAggregatorsResponse
-> Const (First Text) DescribeConfigurationAggregatorsResponse
Lens' DescribeConfigurationAggregatorsResponse (Maybe Text)
describeConfigurationAggregatorsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeConfigurationAggregatorsResponse
-> Const (First Text) DescribeConfigurationAggregatorsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeConfigurationAggregatorsResponse 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 DescribeConfigurationAggregators
forall a. Maybe a
Prelude.Nothing
| Maybe [ConfigurationAggregator] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeConfigurationAggregators
DescribeConfigurationAggregatorsResponse
rs
DescribeConfigurationAggregatorsResponse
-> Getting
(First [ConfigurationAggregator])
DescribeConfigurationAggregatorsResponse
[ConfigurationAggregator]
-> Maybe [ConfigurationAggregator]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ConfigurationAggregator]
-> Const
(First [ConfigurationAggregator])
(Maybe [ConfigurationAggregator]))
-> DescribeConfigurationAggregatorsResponse
-> Const
(First [ConfigurationAggregator])
DescribeConfigurationAggregatorsResponse
Lens'
DescribeConfigurationAggregatorsResponse
(Maybe [ConfigurationAggregator])
describeConfigurationAggregatorsResponse_configurationAggregators
((Maybe [ConfigurationAggregator]
-> Const
(First [ConfigurationAggregator])
(Maybe [ConfigurationAggregator]))
-> DescribeConfigurationAggregatorsResponse
-> Const
(First [ConfigurationAggregator])
DescribeConfigurationAggregatorsResponse)
-> (([ConfigurationAggregator]
-> Const
(First [ConfigurationAggregator]) [ConfigurationAggregator])
-> Maybe [ConfigurationAggregator]
-> Const
(First [ConfigurationAggregator])
(Maybe [ConfigurationAggregator]))
-> Getting
(First [ConfigurationAggregator])
DescribeConfigurationAggregatorsResponse
[ConfigurationAggregator]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ConfigurationAggregator]
-> Const
(First [ConfigurationAggregator]) [ConfigurationAggregator])
-> Maybe [ConfigurationAggregator]
-> Const
(First [ConfigurationAggregator]) (Maybe [ConfigurationAggregator])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeConfigurationAggregators
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeConfigurationAggregators
-> Maybe DescribeConfigurationAggregators
forall a. a -> Maybe a
Prelude.Just (DescribeConfigurationAggregators
-> Maybe DescribeConfigurationAggregators)
-> DescribeConfigurationAggregators
-> Maybe DescribeConfigurationAggregators
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeConfigurationAggregators
rq
DescribeConfigurationAggregators
-> (DescribeConfigurationAggregators
-> DescribeConfigurationAggregators)
-> DescribeConfigurationAggregators
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeConfigurationAggregators
-> Identity DescribeConfigurationAggregators
Lens
DescribeConfigurationAggregators
DescribeConfigurationAggregators
(Maybe Text)
(Maybe Text)
describeConfigurationAggregators_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeConfigurationAggregators
-> Identity DescribeConfigurationAggregators)
-> Maybe Text
-> DescribeConfigurationAggregators
-> DescribeConfigurationAggregators
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeConfigurationAggregators
DescribeConfigurationAggregatorsResponse
rs
DescribeConfigurationAggregatorsResponse
-> Getting
(First Text) DescribeConfigurationAggregatorsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeConfigurationAggregatorsResponse
-> Const (First Text) DescribeConfigurationAggregatorsResponse
Lens' DescribeConfigurationAggregatorsResponse (Maybe Text)
describeConfigurationAggregatorsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeConfigurationAggregatorsResponse
-> Const (First Text) DescribeConfigurationAggregatorsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) DescribeConfigurationAggregatorsResponse 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
DescribeConfigurationAggregators
where
type
AWSResponse DescribeConfigurationAggregators =
DescribeConfigurationAggregatorsResponse
request :: DescribeConfigurationAggregators
-> Request DescribeConfigurationAggregators
request = Service
-> DescribeConfigurationAggregators
-> Request DescribeConfigurationAggregators
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeConfigurationAggregators
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeConfigurationAggregators)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeConfigurationAggregators))
-> Logger
-> Service
-> Proxy DescribeConfigurationAggregators
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeConfigurationAggregators)))
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 [ConfigurationAggregator]
-> Int
-> DescribeConfigurationAggregatorsResponse
DescribeConfigurationAggregatorsResponse'
(Maybe Text
-> Maybe [ConfigurationAggregator]
-> Int
-> DescribeConfigurationAggregatorsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ConfigurationAggregator]
-> Int -> DescribeConfigurationAggregatorsResponse)
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 [ConfigurationAggregator]
-> Int -> DescribeConfigurationAggregatorsResponse)
-> Either String (Maybe [ConfigurationAggregator])
-> Either String (Int -> DescribeConfigurationAggregatorsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ConfigurationAggregator]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ConfigurationAggregators"
Either String (Maybe (Maybe [ConfigurationAggregator]))
-> Maybe [ConfigurationAggregator]
-> Either String (Maybe [ConfigurationAggregator])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ConfigurationAggregator]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> DescribeConfigurationAggregatorsResponse)
-> Either String Int
-> Either String DescribeConfigurationAggregatorsResponse
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
DescribeConfigurationAggregators
instance
Prelude.NFData
DescribeConfigurationAggregators
instance
Core.ToHeaders
DescribeConfigurationAggregators
where
toHeaders :: DescribeConfigurationAggregators -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeConfigurationAggregators -> 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.DescribeConfigurationAggregators" ::
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 DescribeConfigurationAggregators where
toJSON :: DescribeConfigurationAggregators -> Value
toJSON DescribeConfigurationAggregators' {Maybe Natural
Maybe [Text]
Maybe Text
configurationAggregatorNames :: Maybe [Text]
limit :: Maybe Natural
nextToken :: Maybe Text
$sel:configurationAggregatorNames:DescribeConfigurationAggregators' :: DescribeConfigurationAggregators -> Maybe [Text]
$sel:limit:DescribeConfigurationAggregators' :: DescribeConfigurationAggregators -> Maybe Natural
$sel:nextToken:DescribeConfigurationAggregators' :: DescribeConfigurationAggregators -> 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,
(Text
"ConfigurationAggregatorNames" 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]
configurationAggregatorNames
]
)
instance Core.ToPath DescribeConfigurationAggregators where
toPath :: DescribeConfigurationAggregators -> ByteString
toPath = ByteString -> DescribeConfigurationAggregators -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeConfigurationAggregators
where
toQuery :: DescribeConfigurationAggregators -> QueryString
toQuery = QueryString -> DescribeConfigurationAggregators -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeConfigurationAggregatorsResponse = DescribeConfigurationAggregatorsResponse'
{
DescribeConfigurationAggregatorsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeConfigurationAggregatorsResponse
-> Maybe [ConfigurationAggregator]
configurationAggregators :: Prelude.Maybe [ConfigurationAggregator],
DescribeConfigurationAggregatorsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeConfigurationAggregatorsResponse
-> DescribeConfigurationAggregatorsResponse -> Bool
(DescribeConfigurationAggregatorsResponse
-> DescribeConfigurationAggregatorsResponse -> Bool)
-> (DescribeConfigurationAggregatorsResponse
-> DescribeConfigurationAggregatorsResponse -> Bool)
-> Eq DescribeConfigurationAggregatorsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationAggregatorsResponse
-> DescribeConfigurationAggregatorsResponse -> Bool
$c/= :: DescribeConfigurationAggregatorsResponse
-> DescribeConfigurationAggregatorsResponse -> Bool
== :: DescribeConfigurationAggregatorsResponse
-> DescribeConfigurationAggregatorsResponse -> Bool
$c== :: DescribeConfigurationAggregatorsResponse
-> DescribeConfigurationAggregatorsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationAggregatorsResponse]
ReadPrec DescribeConfigurationAggregatorsResponse
Int -> ReadS DescribeConfigurationAggregatorsResponse
ReadS [DescribeConfigurationAggregatorsResponse]
(Int -> ReadS DescribeConfigurationAggregatorsResponse)
-> ReadS [DescribeConfigurationAggregatorsResponse]
-> ReadPrec DescribeConfigurationAggregatorsResponse
-> ReadPrec [DescribeConfigurationAggregatorsResponse]
-> Read DescribeConfigurationAggregatorsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationAggregatorsResponse]
$creadListPrec :: ReadPrec [DescribeConfigurationAggregatorsResponse]
readPrec :: ReadPrec DescribeConfigurationAggregatorsResponse
$creadPrec :: ReadPrec DescribeConfigurationAggregatorsResponse
readList :: ReadS [DescribeConfigurationAggregatorsResponse]
$creadList :: ReadS [DescribeConfigurationAggregatorsResponse]
readsPrec :: Int -> ReadS DescribeConfigurationAggregatorsResponse
$creadsPrec :: Int -> ReadS DescribeConfigurationAggregatorsResponse
Prelude.Read, Int -> DescribeConfigurationAggregatorsResponse -> ShowS
[DescribeConfigurationAggregatorsResponse] -> ShowS
DescribeConfigurationAggregatorsResponse -> String
(Int -> DescribeConfigurationAggregatorsResponse -> ShowS)
-> (DescribeConfigurationAggregatorsResponse -> String)
-> ([DescribeConfigurationAggregatorsResponse] -> ShowS)
-> Show DescribeConfigurationAggregatorsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationAggregatorsResponse] -> ShowS
$cshowList :: [DescribeConfigurationAggregatorsResponse] -> ShowS
show :: DescribeConfigurationAggregatorsResponse -> String
$cshow :: DescribeConfigurationAggregatorsResponse -> String
showsPrec :: Int -> DescribeConfigurationAggregatorsResponse -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationAggregatorsResponse -> ShowS
Prelude.Show, (forall x.
DescribeConfigurationAggregatorsResponse
-> Rep DescribeConfigurationAggregatorsResponse x)
-> (forall x.
Rep DescribeConfigurationAggregatorsResponse x
-> DescribeConfigurationAggregatorsResponse)
-> Generic DescribeConfigurationAggregatorsResponse
forall x.
Rep DescribeConfigurationAggregatorsResponse x
-> DescribeConfigurationAggregatorsResponse
forall x.
DescribeConfigurationAggregatorsResponse
-> Rep DescribeConfigurationAggregatorsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationAggregatorsResponse x
-> DescribeConfigurationAggregatorsResponse
$cfrom :: forall x.
DescribeConfigurationAggregatorsResponse
-> Rep DescribeConfigurationAggregatorsResponse x
Prelude.Generic)
newDescribeConfigurationAggregatorsResponse ::
Prelude.Int ->
DescribeConfigurationAggregatorsResponse
newDescribeConfigurationAggregatorsResponse :: Int -> DescribeConfigurationAggregatorsResponse
newDescribeConfigurationAggregatorsResponse
Int
pHttpStatus_ =
DescribeConfigurationAggregatorsResponse' :: Maybe Text
-> Maybe [ConfigurationAggregator]
-> Int
-> DescribeConfigurationAggregatorsResponse
DescribeConfigurationAggregatorsResponse'
{ $sel:nextToken:DescribeConfigurationAggregatorsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:configurationAggregators:DescribeConfigurationAggregatorsResponse' :: Maybe [ConfigurationAggregator]
configurationAggregators =
Maybe [ConfigurationAggregator]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeConfigurationAggregatorsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeConfigurationAggregatorsResponse_nextToken :: Lens.Lens' DescribeConfigurationAggregatorsResponse (Prelude.Maybe Prelude.Text)
describeConfigurationAggregatorsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeConfigurationAggregatorsResponse
-> f DescribeConfigurationAggregatorsResponse
describeConfigurationAggregatorsResponse_nextToken = (DescribeConfigurationAggregatorsResponse -> Maybe Text)
-> (DescribeConfigurationAggregatorsResponse
-> Maybe Text -> DescribeConfigurationAggregatorsResponse)
-> Lens' DescribeConfigurationAggregatorsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregatorsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeConfigurationAggregatorsResponse' :: DescribeConfigurationAggregatorsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeConfigurationAggregatorsResponse
s@DescribeConfigurationAggregatorsResponse' {} Maybe Text
a -> DescribeConfigurationAggregatorsResponse
s {$sel:nextToken:DescribeConfigurationAggregatorsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeConfigurationAggregatorsResponse)
describeConfigurationAggregatorsResponse_configurationAggregators :: Lens.Lens' DescribeConfigurationAggregatorsResponse (Prelude.Maybe [ConfigurationAggregator])
describeConfigurationAggregatorsResponse_configurationAggregators :: (Maybe [ConfigurationAggregator]
-> f (Maybe [ConfigurationAggregator]))
-> DescribeConfigurationAggregatorsResponse
-> f DescribeConfigurationAggregatorsResponse
describeConfigurationAggregatorsResponse_configurationAggregators = (DescribeConfigurationAggregatorsResponse
-> Maybe [ConfigurationAggregator])
-> (DescribeConfigurationAggregatorsResponse
-> Maybe [ConfigurationAggregator]
-> DescribeConfigurationAggregatorsResponse)
-> Lens'
DescribeConfigurationAggregatorsResponse
(Maybe [ConfigurationAggregator])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregatorsResponse' {Maybe [ConfigurationAggregator]
configurationAggregators :: Maybe [ConfigurationAggregator]
$sel:configurationAggregators:DescribeConfigurationAggregatorsResponse' :: DescribeConfigurationAggregatorsResponse
-> Maybe [ConfigurationAggregator]
configurationAggregators} -> Maybe [ConfigurationAggregator]
configurationAggregators) (\s :: DescribeConfigurationAggregatorsResponse
s@DescribeConfigurationAggregatorsResponse' {} Maybe [ConfigurationAggregator]
a -> DescribeConfigurationAggregatorsResponse
s {$sel:configurationAggregators:DescribeConfigurationAggregatorsResponse' :: Maybe [ConfigurationAggregator]
configurationAggregators = Maybe [ConfigurationAggregator]
a} :: DescribeConfigurationAggregatorsResponse) ((Maybe [ConfigurationAggregator]
-> f (Maybe [ConfigurationAggregator]))
-> DescribeConfigurationAggregatorsResponse
-> f DescribeConfigurationAggregatorsResponse)
-> ((Maybe [ConfigurationAggregator]
-> f (Maybe [ConfigurationAggregator]))
-> Maybe [ConfigurationAggregator]
-> f (Maybe [ConfigurationAggregator]))
-> (Maybe [ConfigurationAggregator]
-> f (Maybe [ConfigurationAggregator]))
-> DescribeConfigurationAggregatorsResponse
-> f DescribeConfigurationAggregatorsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ConfigurationAggregator]
[ConfigurationAggregator]
[ConfigurationAggregator]
[ConfigurationAggregator]
-> Iso
(Maybe [ConfigurationAggregator])
(Maybe [ConfigurationAggregator])
(Maybe [ConfigurationAggregator])
(Maybe [ConfigurationAggregator])
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
[ConfigurationAggregator]
[ConfigurationAggregator]
[ConfigurationAggregator]
[ConfigurationAggregator]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeConfigurationAggregatorsResponse_httpStatus :: Lens.Lens' DescribeConfigurationAggregatorsResponse Prelude.Int
describeConfigurationAggregatorsResponse_httpStatus :: (Int -> f Int)
-> DescribeConfigurationAggregatorsResponse
-> f DescribeConfigurationAggregatorsResponse
describeConfigurationAggregatorsResponse_httpStatus = (DescribeConfigurationAggregatorsResponse -> Int)
-> (DescribeConfigurationAggregatorsResponse
-> Int -> DescribeConfigurationAggregatorsResponse)
-> Lens
DescribeConfigurationAggregatorsResponse
DescribeConfigurationAggregatorsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregatorsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeConfigurationAggregatorsResponse' :: DescribeConfigurationAggregatorsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeConfigurationAggregatorsResponse
s@DescribeConfigurationAggregatorsResponse' {} Int
a -> DescribeConfigurationAggregatorsResponse
s {$sel:httpStatus:DescribeConfigurationAggregatorsResponse' :: Int
httpStatus = Int
a} :: DescribeConfigurationAggregatorsResponse)
instance
Prelude.NFData
DescribeConfigurationAggregatorsResponse