{-# 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.DescribeConfigurationAggregatorSourcesStatus
(
DescribeConfigurationAggregatorSourcesStatus (..),
newDescribeConfigurationAggregatorSourcesStatus,
describeConfigurationAggregatorSourcesStatus_nextToken,
describeConfigurationAggregatorSourcesStatus_limit,
describeConfigurationAggregatorSourcesStatus_updateStatus,
describeConfigurationAggregatorSourcesStatus_configurationAggregatorName,
DescribeConfigurationAggregatorSourcesStatusResponse (..),
newDescribeConfigurationAggregatorSourcesStatusResponse,
describeConfigurationAggregatorSourcesStatusResponse_aggregatedSourceStatusList,
describeConfigurationAggregatorSourcesStatusResponse_nextToken,
describeConfigurationAggregatorSourcesStatusResponse_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 DescribeConfigurationAggregatorSourcesStatus = DescribeConfigurationAggregatorSourcesStatus'
{
DescribeConfigurationAggregatorSourcesStatus -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeConfigurationAggregatorSourcesStatus -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
DescribeConfigurationAggregatorSourcesStatus
-> Maybe (NonEmpty AggregatedSourceStatusType)
updateStatus :: Prelude.Maybe (Prelude.NonEmpty AggregatedSourceStatusType),
DescribeConfigurationAggregatorSourcesStatus -> Text
configurationAggregatorName :: Prelude.Text
}
deriving (DescribeConfigurationAggregatorSourcesStatus
-> DescribeConfigurationAggregatorSourcesStatus -> Bool
(DescribeConfigurationAggregatorSourcesStatus
-> DescribeConfigurationAggregatorSourcesStatus -> Bool)
-> (DescribeConfigurationAggregatorSourcesStatus
-> DescribeConfigurationAggregatorSourcesStatus -> Bool)
-> Eq DescribeConfigurationAggregatorSourcesStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationAggregatorSourcesStatus
-> DescribeConfigurationAggregatorSourcesStatus -> Bool
$c/= :: DescribeConfigurationAggregatorSourcesStatus
-> DescribeConfigurationAggregatorSourcesStatus -> Bool
== :: DescribeConfigurationAggregatorSourcesStatus
-> DescribeConfigurationAggregatorSourcesStatus -> Bool
$c== :: DescribeConfigurationAggregatorSourcesStatus
-> DescribeConfigurationAggregatorSourcesStatus -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationAggregatorSourcesStatus]
ReadPrec DescribeConfigurationAggregatorSourcesStatus
Int -> ReadS DescribeConfigurationAggregatorSourcesStatus
ReadS [DescribeConfigurationAggregatorSourcesStatus]
(Int -> ReadS DescribeConfigurationAggregatorSourcesStatus)
-> ReadS [DescribeConfigurationAggregatorSourcesStatus]
-> ReadPrec DescribeConfigurationAggregatorSourcesStatus
-> ReadPrec [DescribeConfigurationAggregatorSourcesStatus]
-> Read DescribeConfigurationAggregatorSourcesStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationAggregatorSourcesStatus]
$creadListPrec :: ReadPrec [DescribeConfigurationAggregatorSourcesStatus]
readPrec :: ReadPrec DescribeConfigurationAggregatorSourcesStatus
$creadPrec :: ReadPrec DescribeConfigurationAggregatorSourcesStatus
readList :: ReadS [DescribeConfigurationAggregatorSourcesStatus]
$creadList :: ReadS [DescribeConfigurationAggregatorSourcesStatus]
readsPrec :: Int -> ReadS DescribeConfigurationAggregatorSourcesStatus
$creadsPrec :: Int -> ReadS DescribeConfigurationAggregatorSourcesStatus
Prelude.Read, Int -> DescribeConfigurationAggregatorSourcesStatus -> ShowS
[DescribeConfigurationAggregatorSourcesStatus] -> ShowS
DescribeConfigurationAggregatorSourcesStatus -> String
(Int -> DescribeConfigurationAggregatorSourcesStatus -> ShowS)
-> (DescribeConfigurationAggregatorSourcesStatus -> String)
-> ([DescribeConfigurationAggregatorSourcesStatus] -> ShowS)
-> Show DescribeConfigurationAggregatorSourcesStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationAggregatorSourcesStatus] -> ShowS
$cshowList :: [DescribeConfigurationAggregatorSourcesStatus] -> ShowS
show :: DescribeConfigurationAggregatorSourcesStatus -> String
$cshow :: DescribeConfigurationAggregatorSourcesStatus -> String
showsPrec :: Int -> DescribeConfigurationAggregatorSourcesStatus -> ShowS
$cshowsPrec :: Int -> DescribeConfigurationAggregatorSourcesStatus -> ShowS
Prelude.Show, (forall x.
DescribeConfigurationAggregatorSourcesStatus
-> Rep DescribeConfigurationAggregatorSourcesStatus x)
-> (forall x.
Rep DescribeConfigurationAggregatorSourcesStatus x
-> DescribeConfigurationAggregatorSourcesStatus)
-> Generic DescribeConfigurationAggregatorSourcesStatus
forall x.
Rep DescribeConfigurationAggregatorSourcesStatus x
-> DescribeConfigurationAggregatorSourcesStatus
forall x.
DescribeConfigurationAggregatorSourcesStatus
-> Rep DescribeConfigurationAggregatorSourcesStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationAggregatorSourcesStatus x
-> DescribeConfigurationAggregatorSourcesStatus
$cfrom :: forall x.
DescribeConfigurationAggregatorSourcesStatus
-> Rep DescribeConfigurationAggregatorSourcesStatus x
Prelude.Generic)
newDescribeConfigurationAggregatorSourcesStatus ::
Prelude.Text ->
DescribeConfigurationAggregatorSourcesStatus
newDescribeConfigurationAggregatorSourcesStatus :: Text -> DescribeConfigurationAggregatorSourcesStatus
newDescribeConfigurationAggregatorSourcesStatus
Text
pConfigurationAggregatorName_ =
DescribeConfigurationAggregatorSourcesStatus' :: Maybe Text
-> Maybe Natural
-> Maybe (NonEmpty AggregatedSourceStatusType)
-> Text
-> DescribeConfigurationAggregatorSourcesStatus
DescribeConfigurationAggregatorSourcesStatus'
{ $sel:nextToken:DescribeConfigurationAggregatorSourcesStatus' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:DescribeConfigurationAggregatorSourcesStatus' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:updateStatus:DescribeConfigurationAggregatorSourcesStatus' :: Maybe (NonEmpty AggregatedSourceStatusType)
updateStatus =
Maybe (NonEmpty AggregatedSourceStatusType)
forall a. Maybe a
Prelude.Nothing,
$sel:configurationAggregatorName:DescribeConfigurationAggregatorSourcesStatus' :: Text
configurationAggregatorName =
Text
pConfigurationAggregatorName_
}
describeConfigurationAggregatorSourcesStatus_nextToken :: Lens.Lens' DescribeConfigurationAggregatorSourcesStatus (Prelude.Maybe Prelude.Text)
describeConfigurationAggregatorSourcesStatus_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeConfigurationAggregatorSourcesStatus
-> f DescribeConfigurationAggregatorSourcesStatus
describeConfigurationAggregatorSourcesStatus_nextToken = (DescribeConfigurationAggregatorSourcesStatus -> Maybe Text)
-> (DescribeConfigurationAggregatorSourcesStatus
-> Maybe Text -> DescribeConfigurationAggregatorSourcesStatus)
-> Lens
DescribeConfigurationAggregatorSourcesStatus
DescribeConfigurationAggregatorSourcesStatus
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregatorSourcesStatus' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeConfigurationAggregatorSourcesStatus' :: DescribeConfigurationAggregatorSourcesStatus -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeConfigurationAggregatorSourcesStatus
s@DescribeConfigurationAggregatorSourcesStatus' {} Maybe Text
a -> DescribeConfigurationAggregatorSourcesStatus
s {$sel:nextToken:DescribeConfigurationAggregatorSourcesStatus' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeConfigurationAggregatorSourcesStatus)
describeConfigurationAggregatorSourcesStatus_limit :: Lens.Lens' DescribeConfigurationAggregatorSourcesStatus (Prelude.Maybe Prelude.Natural)
describeConfigurationAggregatorSourcesStatus_limit :: (Maybe Natural -> f (Maybe Natural))
-> DescribeConfigurationAggregatorSourcesStatus
-> f DescribeConfigurationAggregatorSourcesStatus
describeConfigurationAggregatorSourcesStatus_limit = (DescribeConfigurationAggregatorSourcesStatus -> Maybe Natural)
-> (DescribeConfigurationAggregatorSourcesStatus
-> Maybe Natural -> DescribeConfigurationAggregatorSourcesStatus)
-> Lens
DescribeConfigurationAggregatorSourcesStatus
DescribeConfigurationAggregatorSourcesStatus
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregatorSourcesStatus' {Maybe Natural
limit :: Maybe Natural
$sel:limit:DescribeConfigurationAggregatorSourcesStatus' :: DescribeConfigurationAggregatorSourcesStatus -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: DescribeConfigurationAggregatorSourcesStatus
s@DescribeConfigurationAggregatorSourcesStatus' {} Maybe Natural
a -> DescribeConfigurationAggregatorSourcesStatus
s {$sel:limit:DescribeConfigurationAggregatorSourcesStatus' :: Maybe Natural
limit = Maybe Natural
a} :: DescribeConfigurationAggregatorSourcesStatus)
describeConfigurationAggregatorSourcesStatus_updateStatus :: Lens.Lens' DescribeConfigurationAggregatorSourcesStatus (Prelude.Maybe (Prelude.NonEmpty AggregatedSourceStatusType))
describeConfigurationAggregatorSourcesStatus_updateStatus :: (Maybe (NonEmpty AggregatedSourceStatusType)
-> f (Maybe (NonEmpty AggregatedSourceStatusType)))
-> DescribeConfigurationAggregatorSourcesStatus
-> f DescribeConfigurationAggregatorSourcesStatus
describeConfigurationAggregatorSourcesStatus_updateStatus = (DescribeConfigurationAggregatorSourcesStatus
-> Maybe (NonEmpty AggregatedSourceStatusType))
-> (DescribeConfigurationAggregatorSourcesStatus
-> Maybe (NonEmpty AggregatedSourceStatusType)
-> DescribeConfigurationAggregatorSourcesStatus)
-> Lens
DescribeConfigurationAggregatorSourcesStatus
DescribeConfigurationAggregatorSourcesStatus
(Maybe (NonEmpty AggregatedSourceStatusType))
(Maybe (NonEmpty AggregatedSourceStatusType))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregatorSourcesStatus' {Maybe (NonEmpty AggregatedSourceStatusType)
updateStatus :: Maybe (NonEmpty AggregatedSourceStatusType)
$sel:updateStatus:DescribeConfigurationAggregatorSourcesStatus' :: DescribeConfigurationAggregatorSourcesStatus
-> Maybe (NonEmpty AggregatedSourceStatusType)
updateStatus} -> Maybe (NonEmpty AggregatedSourceStatusType)
updateStatus) (\s :: DescribeConfigurationAggregatorSourcesStatus
s@DescribeConfigurationAggregatorSourcesStatus' {} Maybe (NonEmpty AggregatedSourceStatusType)
a -> DescribeConfigurationAggregatorSourcesStatus
s {$sel:updateStatus:DescribeConfigurationAggregatorSourcesStatus' :: Maybe (NonEmpty AggregatedSourceStatusType)
updateStatus = Maybe (NonEmpty AggregatedSourceStatusType)
a} :: DescribeConfigurationAggregatorSourcesStatus) ((Maybe (NonEmpty AggregatedSourceStatusType)
-> f (Maybe (NonEmpty AggregatedSourceStatusType)))
-> DescribeConfigurationAggregatorSourcesStatus
-> f DescribeConfigurationAggregatorSourcesStatus)
-> ((Maybe (NonEmpty AggregatedSourceStatusType)
-> f (Maybe (NonEmpty AggregatedSourceStatusType)))
-> Maybe (NonEmpty AggregatedSourceStatusType)
-> f (Maybe (NonEmpty AggregatedSourceStatusType)))
-> (Maybe (NonEmpty AggregatedSourceStatusType)
-> f (Maybe (NonEmpty AggregatedSourceStatusType)))
-> DescribeConfigurationAggregatorSourcesStatus
-> f DescribeConfigurationAggregatorSourcesStatus
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty AggregatedSourceStatusType)
(NonEmpty AggregatedSourceStatusType)
(NonEmpty AggregatedSourceStatusType)
(NonEmpty AggregatedSourceStatusType)
-> Iso
(Maybe (NonEmpty AggregatedSourceStatusType))
(Maybe (NonEmpty AggregatedSourceStatusType))
(Maybe (NonEmpty AggregatedSourceStatusType))
(Maybe (NonEmpty AggregatedSourceStatusType))
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
(NonEmpty AggregatedSourceStatusType)
(NonEmpty AggregatedSourceStatusType)
(NonEmpty AggregatedSourceStatusType)
(NonEmpty AggregatedSourceStatusType)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeConfigurationAggregatorSourcesStatus_configurationAggregatorName :: Lens.Lens' DescribeConfigurationAggregatorSourcesStatus Prelude.Text
describeConfigurationAggregatorSourcesStatus_configurationAggregatorName :: (Text -> f Text)
-> DescribeConfigurationAggregatorSourcesStatus
-> f DescribeConfigurationAggregatorSourcesStatus
describeConfigurationAggregatorSourcesStatus_configurationAggregatorName = (DescribeConfigurationAggregatorSourcesStatus -> Text)
-> (DescribeConfigurationAggregatorSourcesStatus
-> Text -> DescribeConfigurationAggregatorSourcesStatus)
-> Lens
DescribeConfigurationAggregatorSourcesStatus
DescribeConfigurationAggregatorSourcesStatus
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregatorSourcesStatus' {Text
configurationAggregatorName :: Text
$sel:configurationAggregatorName:DescribeConfigurationAggregatorSourcesStatus' :: DescribeConfigurationAggregatorSourcesStatus -> Text
configurationAggregatorName} -> Text
configurationAggregatorName) (\s :: DescribeConfigurationAggregatorSourcesStatus
s@DescribeConfigurationAggregatorSourcesStatus' {} Text
a -> DescribeConfigurationAggregatorSourcesStatus
s {$sel:configurationAggregatorName:DescribeConfigurationAggregatorSourcesStatus' :: Text
configurationAggregatorName = Text
a} :: DescribeConfigurationAggregatorSourcesStatus)
instance
Core.AWSPager
DescribeConfigurationAggregatorSourcesStatus
where
page :: DescribeConfigurationAggregatorSourcesStatus
-> AWSResponse DescribeConfigurationAggregatorSourcesStatus
-> Maybe DescribeConfigurationAggregatorSourcesStatus
page DescribeConfigurationAggregatorSourcesStatus
rq AWSResponse DescribeConfigurationAggregatorSourcesStatus
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeConfigurationAggregatorSourcesStatus
DescribeConfigurationAggregatorSourcesStatusResponse
rs
DescribeConfigurationAggregatorSourcesStatusResponse
-> Getting
(First Text)
DescribeConfigurationAggregatorSourcesStatusResponse
Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> Const
(First Text) DescribeConfigurationAggregatorSourcesStatusResponse
Lens'
DescribeConfigurationAggregatorSourcesStatusResponse (Maybe Text)
describeConfigurationAggregatorSourcesStatusResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> Const
(First Text) DescribeConfigurationAggregatorSourcesStatusResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text)
DescribeConfigurationAggregatorSourcesStatusResponse
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 DescribeConfigurationAggregatorSourcesStatus
forall a. Maybe a
Prelude.Nothing
| Maybe [AggregatedSourceStatus] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeConfigurationAggregatorSourcesStatus
DescribeConfigurationAggregatorSourcesStatusResponse
rs
DescribeConfigurationAggregatorSourcesStatusResponse
-> Getting
(First [AggregatedSourceStatus])
DescribeConfigurationAggregatorSourcesStatusResponse
[AggregatedSourceStatus]
-> Maybe [AggregatedSourceStatus]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [AggregatedSourceStatus]
-> Const
(First [AggregatedSourceStatus]) (Maybe [AggregatedSourceStatus]))
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> Const
(First [AggregatedSourceStatus])
DescribeConfigurationAggregatorSourcesStatusResponse
Lens'
DescribeConfigurationAggregatorSourcesStatusResponse
(Maybe [AggregatedSourceStatus])
describeConfigurationAggregatorSourcesStatusResponse_aggregatedSourceStatusList
((Maybe [AggregatedSourceStatus]
-> Const
(First [AggregatedSourceStatus]) (Maybe [AggregatedSourceStatus]))
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> Const
(First [AggregatedSourceStatus])
DescribeConfigurationAggregatorSourcesStatusResponse)
-> (([AggregatedSourceStatus]
-> Const (First [AggregatedSourceStatus]) [AggregatedSourceStatus])
-> Maybe [AggregatedSourceStatus]
-> Const
(First [AggregatedSourceStatus]) (Maybe [AggregatedSourceStatus]))
-> Getting
(First [AggregatedSourceStatus])
DescribeConfigurationAggregatorSourcesStatusResponse
[AggregatedSourceStatus]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([AggregatedSourceStatus]
-> Const (First [AggregatedSourceStatus]) [AggregatedSourceStatus])
-> Maybe [AggregatedSourceStatus]
-> Const
(First [AggregatedSourceStatus]) (Maybe [AggregatedSourceStatus])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeConfigurationAggregatorSourcesStatus
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeConfigurationAggregatorSourcesStatus
-> Maybe DescribeConfigurationAggregatorSourcesStatus
forall a. a -> Maybe a
Prelude.Just (DescribeConfigurationAggregatorSourcesStatus
-> Maybe DescribeConfigurationAggregatorSourcesStatus)
-> DescribeConfigurationAggregatorSourcesStatus
-> Maybe DescribeConfigurationAggregatorSourcesStatus
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeConfigurationAggregatorSourcesStatus
rq
DescribeConfigurationAggregatorSourcesStatus
-> (DescribeConfigurationAggregatorSourcesStatus
-> DescribeConfigurationAggregatorSourcesStatus)
-> DescribeConfigurationAggregatorSourcesStatus
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeConfigurationAggregatorSourcesStatus
-> Identity DescribeConfigurationAggregatorSourcesStatus
Lens
DescribeConfigurationAggregatorSourcesStatus
DescribeConfigurationAggregatorSourcesStatus
(Maybe Text)
(Maybe Text)
describeConfigurationAggregatorSourcesStatus_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeConfigurationAggregatorSourcesStatus
-> Identity DescribeConfigurationAggregatorSourcesStatus)
-> Maybe Text
-> DescribeConfigurationAggregatorSourcesStatus
-> DescribeConfigurationAggregatorSourcesStatus
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeConfigurationAggregatorSourcesStatus
DescribeConfigurationAggregatorSourcesStatusResponse
rs
DescribeConfigurationAggregatorSourcesStatusResponse
-> Getting
(First Text)
DescribeConfigurationAggregatorSourcesStatusResponse
Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> Const
(First Text) DescribeConfigurationAggregatorSourcesStatusResponse
Lens'
DescribeConfigurationAggregatorSourcesStatusResponse (Maybe Text)
describeConfigurationAggregatorSourcesStatusResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> Const
(First Text) DescribeConfigurationAggregatorSourcesStatusResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text)
DescribeConfigurationAggregatorSourcesStatusResponse
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
DescribeConfigurationAggregatorSourcesStatus
where
type
AWSResponse
DescribeConfigurationAggregatorSourcesStatus =
DescribeConfigurationAggregatorSourcesStatusResponse
request :: DescribeConfigurationAggregatorSourcesStatus
-> Request DescribeConfigurationAggregatorSourcesStatus
request = Service
-> DescribeConfigurationAggregatorSourcesStatus
-> Request DescribeConfigurationAggregatorSourcesStatus
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeConfigurationAggregatorSourcesStatus
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DescribeConfigurationAggregatorSourcesStatus)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either
String (AWSResponse DescribeConfigurationAggregatorSourcesStatus))
-> Logger
-> Service
-> Proxy DescribeConfigurationAggregatorSourcesStatus
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DescribeConfigurationAggregatorSourcesStatus)))
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 [AggregatedSourceStatus]
-> Maybe Text
-> Int
-> DescribeConfigurationAggregatorSourcesStatusResponse
DescribeConfigurationAggregatorSourcesStatusResponse'
(Maybe [AggregatedSourceStatus]
-> Maybe Text
-> Int
-> DescribeConfigurationAggregatorSourcesStatusResponse)
-> Either String (Maybe [AggregatedSourceStatus])
-> Either
String
(Maybe Text
-> Int -> DescribeConfigurationAggregatorSourcesStatusResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [AggregatedSourceStatus]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AggregatedSourceStatusList"
Either String (Maybe (Maybe [AggregatedSourceStatus]))
-> Maybe [AggregatedSourceStatus]
-> Either String (Maybe [AggregatedSourceStatus])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AggregatedSourceStatus]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text
-> Int -> DescribeConfigurationAggregatorSourcesStatusResponse)
-> Either String (Maybe Text)
-> Either
String
(Int -> DescribeConfigurationAggregatorSourcesStatusResponse)
forall (f :: * -> *) a b. Applicative f => 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
(Int -> DescribeConfigurationAggregatorSourcesStatusResponse)
-> Either String Int
-> Either
String DescribeConfigurationAggregatorSourcesStatusResponse
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
DescribeConfigurationAggregatorSourcesStatus
instance
Prelude.NFData
DescribeConfigurationAggregatorSourcesStatus
instance
Core.ToHeaders
DescribeConfigurationAggregatorSourcesStatus
where
toHeaders :: DescribeConfigurationAggregatorSourcesStatus -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeConfigurationAggregatorSourcesStatus -> 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.DescribeConfigurationAggregatorSourcesStatus" ::
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
DescribeConfigurationAggregatorSourcesStatus
where
toJSON :: DescribeConfigurationAggregatorSourcesStatus -> Value
toJSON
DescribeConfigurationAggregatorSourcesStatus' {Maybe Natural
Maybe (NonEmpty AggregatedSourceStatusType)
Maybe Text
Text
configurationAggregatorName :: Text
updateStatus :: Maybe (NonEmpty AggregatedSourceStatusType)
limit :: Maybe Natural
nextToken :: Maybe Text
$sel:configurationAggregatorName:DescribeConfigurationAggregatorSourcesStatus' :: DescribeConfigurationAggregatorSourcesStatus -> Text
$sel:updateStatus:DescribeConfigurationAggregatorSourcesStatus' :: DescribeConfigurationAggregatorSourcesStatus
-> Maybe (NonEmpty AggregatedSourceStatusType)
$sel:limit:DescribeConfigurationAggregatorSourcesStatus' :: DescribeConfigurationAggregatorSourcesStatus -> Maybe Natural
$sel:nextToken:DescribeConfigurationAggregatorSourcesStatus' :: DescribeConfigurationAggregatorSourcesStatus -> 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
"UpdateStatus" Text -> NonEmpty AggregatedSourceStatusType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty AggregatedSourceStatusType -> Pair)
-> Maybe (NonEmpty AggregatedSourceStatusType) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty AggregatedSourceStatusType)
updateStatus,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"ConfigurationAggregatorName"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
configurationAggregatorName
)
]
)
instance
Core.ToPath
DescribeConfigurationAggregatorSourcesStatus
where
toPath :: DescribeConfigurationAggregatorSourcesStatus -> ByteString
toPath = ByteString
-> DescribeConfigurationAggregatorSourcesStatus -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribeConfigurationAggregatorSourcesStatus
where
toQuery :: DescribeConfigurationAggregatorSourcesStatus -> QueryString
toQuery = QueryString
-> DescribeConfigurationAggregatorSourcesStatus -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeConfigurationAggregatorSourcesStatusResponse = DescribeConfigurationAggregatorSourcesStatusResponse'
{
DescribeConfigurationAggregatorSourcesStatusResponse
-> Maybe [AggregatedSourceStatus]
aggregatedSourceStatusList :: Prelude.Maybe [AggregatedSourceStatus],
DescribeConfigurationAggregatorSourcesStatusResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeConfigurationAggregatorSourcesStatusResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeConfigurationAggregatorSourcesStatusResponse
-> DescribeConfigurationAggregatorSourcesStatusResponse -> Bool
(DescribeConfigurationAggregatorSourcesStatusResponse
-> DescribeConfigurationAggregatorSourcesStatusResponse -> Bool)
-> (DescribeConfigurationAggregatorSourcesStatusResponse
-> DescribeConfigurationAggregatorSourcesStatusResponse -> Bool)
-> Eq DescribeConfigurationAggregatorSourcesStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConfigurationAggregatorSourcesStatusResponse
-> DescribeConfigurationAggregatorSourcesStatusResponse -> Bool
$c/= :: DescribeConfigurationAggregatorSourcesStatusResponse
-> DescribeConfigurationAggregatorSourcesStatusResponse -> Bool
== :: DescribeConfigurationAggregatorSourcesStatusResponse
-> DescribeConfigurationAggregatorSourcesStatusResponse -> Bool
$c== :: DescribeConfigurationAggregatorSourcesStatusResponse
-> DescribeConfigurationAggregatorSourcesStatusResponse -> Bool
Prelude.Eq, ReadPrec [DescribeConfigurationAggregatorSourcesStatusResponse]
ReadPrec DescribeConfigurationAggregatorSourcesStatusResponse
Int -> ReadS DescribeConfigurationAggregatorSourcesStatusResponse
ReadS [DescribeConfigurationAggregatorSourcesStatusResponse]
(Int -> ReadS DescribeConfigurationAggregatorSourcesStatusResponse)
-> ReadS [DescribeConfigurationAggregatorSourcesStatusResponse]
-> ReadPrec DescribeConfigurationAggregatorSourcesStatusResponse
-> ReadPrec [DescribeConfigurationAggregatorSourcesStatusResponse]
-> Read DescribeConfigurationAggregatorSourcesStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConfigurationAggregatorSourcesStatusResponse]
$creadListPrec :: ReadPrec [DescribeConfigurationAggregatorSourcesStatusResponse]
readPrec :: ReadPrec DescribeConfigurationAggregatorSourcesStatusResponse
$creadPrec :: ReadPrec DescribeConfigurationAggregatorSourcesStatusResponse
readList :: ReadS [DescribeConfigurationAggregatorSourcesStatusResponse]
$creadList :: ReadS [DescribeConfigurationAggregatorSourcesStatusResponse]
readsPrec :: Int -> ReadS DescribeConfigurationAggregatorSourcesStatusResponse
$creadsPrec :: Int -> ReadS DescribeConfigurationAggregatorSourcesStatusResponse
Prelude.Read, Int
-> DescribeConfigurationAggregatorSourcesStatusResponse -> ShowS
[DescribeConfigurationAggregatorSourcesStatusResponse] -> ShowS
DescribeConfigurationAggregatorSourcesStatusResponse -> String
(Int
-> DescribeConfigurationAggregatorSourcesStatusResponse -> ShowS)
-> (DescribeConfigurationAggregatorSourcesStatusResponse -> String)
-> ([DescribeConfigurationAggregatorSourcesStatusResponse]
-> ShowS)
-> Show DescribeConfigurationAggregatorSourcesStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConfigurationAggregatorSourcesStatusResponse] -> ShowS
$cshowList :: [DescribeConfigurationAggregatorSourcesStatusResponse] -> ShowS
show :: DescribeConfigurationAggregatorSourcesStatusResponse -> String
$cshow :: DescribeConfigurationAggregatorSourcesStatusResponse -> String
showsPrec :: Int
-> DescribeConfigurationAggregatorSourcesStatusResponse -> ShowS
$cshowsPrec :: Int
-> DescribeConfigurationAggregatorSourcesStatusResponse -> ShowS
Prelude.Show, (forall x.
DescribeConfigurationAggregatorSourcesStatusResponse
-> Rep DescribeConfigurationAggregatorSourcesStatusResponse x)
-> (forall x.
Rep DescribeConfigurationAggregatorSourcesStatusResponse x
-> DescribeConfigurationAggregatorSourcesStatusResponse)
-> Generic DescribeConfigurationAggregatorSourcesStatusResponse
forall x.
Rep DescribeConfigurationAggregatorSourcesStatusResponse x
-> DescribeConfigurationAggregatorSourcesStatusResponse
forall x.
DescribeConfigurationAggregatorSourcesStatusResponse
-> Rep DescribeConfigurationAggregatorSourcesStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConfigurationAggregatorSourcesStatusResponse x
-> DescribeConfigurationAggregatorSourcesStatusResponse
$cfrom :: forall x.
DescribeConfigurationAggregatorSourcesStatusResponse
-> Rep DescribeConfigurationAggregatorSourcesStatusResponse x
Prelude.Generic)
newDescribeConfigurationAggregatorSourcesStatusResponse ::
Prelude.Int ->
DescribeConfigurationAggregatorSourcesStatusResponse
newDescribeConfigurationAggregatorSourcesStatusResponse :: Int -> DescribeConfigurationAggregatorSourcesStatusResponse
newDescribeConfigurationAggregatorSourcesStatusResponse
Int
pHttpStatus_ =
DescribeConfigurationAggregatorSourcesStatusResponse' :: Maybe [AggregatedSourceStatus]
-> Maybe Text
-> Int
-> DescribeConfigurationAggregatorSourcesStatusResponse
DescribeConfigurationAggregatorSourcesStatusResponse'
{ $sel:aggregatedSourceStatusList:DescribeConfigurationAggregatorSourcesStatusResponse' :: Maybe [AggregatedSourceStatus]
aggregatedSourceStatusList =
Maybe [AggregatedSourceStatus]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeConfigurationAggregatorSourcesStatusResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeConfigurationAggregatorSourcesStatusResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
describeConfigurationAggregatorSourcesStatusResponse_aggregatedSourceStatusList :: Lens.Lens' DescribeConfigurationAggregatorSourcesStatusResponse (Prelude.Maybe [AggregatedSourceStatus])
describeConfigurationAggregatorSourcesStatusResponse_aggregatedSourceStatusList :: (Maybe [AggregatedSourceStatus]
-> f (Maybe [AggregatedSourceStatus]))
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> f DescribeConfigurationAggregatorSourcesStatusResponse
describeConfigurationAggregatorSourcesStatusResponse_aggregatedSourceStatusList = (DescribeConfigurationAggregatorSourcesStatusResponse
-> Maybe [AggregatedSourceStatus])
-> (DescribeConfigurationAggregatorSourcesStatusResponse
-> Maybe [AggregatedSourceStatus]
-> DescribeConfigurationAggregatorSourcesStatusResponse)
-> Lens'
DescribeConfigurationAggregatorSourcesStatusResponse
(Maybe [AggregatedSourceStatus])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregatorSourcesStatusResponse' {Maybe [AggregatedSourceStatus]
aggregatedSourceStatusList :: Maybe [AggregatedSourceStatus]
$sel:aggregatedSourceStatusList:DescribeConfigurationAggregatorSourcesStatusResponse' :: DescribeConfigurationAggregatorSourcesStatusResponse
-> Maybe [AggregatedSourceStatus]
aggregatedSourceStatusList} -> Maybe [AggregatedSourceStatus]
aggregatedSourceStatusList) (\s :: DescribeConfigurationAggregatorSourcesStatusResponse
s@DescribeConfigurationAggregatorSourcesStatusResponse' {} Maybe [AggregatedSourceStatus]
a -> DescribeConfigurationAggregatorSourcesStatusResponse
s {$sel:aggregatedSourceStatusList:DescribeConfigurationAggregatorSourcesStatusResponse' :: Maybe [AggregatedSourceStatus]
aggregatedSourceStatusList = Maybe [AggregatedSourceStatus]
a} :: DescribeConfigurationAggregatorSourcesStatusResponse) ((Maybe [AggregatedSourceStatus]
-> f (Maybe [AggregatedSourceStatus]))
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> f DescribeConfigurationAggregatorSourcesStatusResponse)
-> ((Maybe [AggregatedSourceStatus]
-> f (Maybe [AggregatedSourceStatus]))
-> Maybe [AggregatedSourceStatus]
-> f (Maybe [AggregatedSourceStatus]))
-> (Maybe [AggregatedSourceStatus]
-> f (Maybe [AggregatedSourceStatus]))
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> f DescribeConfigurationAggregatorSourcesStatusResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AggregatedSourceStatus]
[AggregatedSourceStatus]
[AggregatedSourceStatus]
[AggregatedSourceStatus]
-> Iso
(Maybe [AggregatedSourceStatus])
(Maybe [AggregatedSourceStatus])
(Maybe [AggregatedSourceStatus])
(Maybe [AggregatedSourceStatus])
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
[AggregatedSourceStatus]
[AggregatedSourceStatus]
[AggregatedSourceStatus]
[AggregatedSourceStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeConfigurationAggregatorSourcesStatusResponse_nextToken :: Lens.Lens' DescribeConfigurationAggregatorSourcesStatusResponse (Prelude.Maybe Prelude.Text)
describeConfigurationAggregatorSourcesStatusResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> f DescribeConfigurationAggregatorSourcesStatusResponse
describeConfigurationAggregatorSourcesStatusResponse_nextToken = (DescribeConfigurationAggregatorSourcesStatusResponse
-> Maybe Text)
-> (DescribeConfigurationAggregatorSourcesStatusResponse
-> Maybe Text
-> DescribeConfigurationAggregatorSourcesStatusResponse)
-> Lens'
DescribeConfigurationAggregatorSourcesStatusResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregatorSourcesStatusResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeConfigurationAggregatorSourcesStatusResponse' :: DescribeConfigurationAggregatorSourcesStatusResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeConfigurationAggregatorSourcesStatusResponse
s@DescribeConfigurationAggregatorSourcesStatusResponse' {} Maybe Text
a -> DescribeConfigurationAggregatorSourcesStatusResponse
s {$sel:nextToken:DescribeConfigurationAggregatorSourcesStatusResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeConfigurationAggregatorSourcesStatusResponse)
describeConfigurationAggregatorSourcesStatusResponse_httpStatus :: Lens.Lens' DescribeConfigurationAggregatorSourcesStatusResponse Prelude.Int
describeConfigurationAggregatorSourcesStatusResponse_httpStatus :: (Int -> f Int)
-> DescribeConfigurationAggregatorSourcesStatusResponse
-> f DescribeConfigurationAggregatorSourcesStatusResponse
describeConfigurationAggregatorSourcesStatusResponse_httpStatus = (DescribeConfigurationAggregatorSourcesStatusResponse -> Int)
-> (DescribeConfigurationAggregatorSourcesStatusResponse
-> Int -> DescribeConfigurationAggregatorSourcesStatusResponse)
-> Lens
DescribeConfigurationAggregatorSourcesStatusResponse
DescribeConfigurationAggregatorSourcesStatusResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConfigurationAggregatorSourcesStatusResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeConfigurationAggregatorSourcesStatusResponse' :: DescribeConfigurationAggregatorSourcesStatusResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeConfigurationAggregatorSourcesStatusResponse
s@DescribeConfigurationAggregatorSourcesStatusResponse' {} Int
a -> DescribeConfigurationAggregatorSourcesStatusResponse
s {$sel:httpStatus:DescribeConfigurationAggregatorSourcesStatusResponse' :: Int
httpStatus = Int
a} :: DescribeConfigurationAggregatorSourcesStatusResponse)
instance
Prelude.NFData
DescribeConfigurationAggregatorSourcesStatusResponse