{-# 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.GetDiscoveredResourceCounts
(
GetDiscoveredResourceCounts (..),
newGetDiscoveredResourceCounts,
getDiscoveredResourceCounts_nextToken,
getDiscoveredResourceCounts_limit,
getDiscoveredResourceCounts_resourceTypes,
GetDiscoveredResourceCountsResponse (..),
newGetDiscoveredResourceCountsResponse,
getDiscoveredResourceCountsResponse_totalDiscoveredResources,
getDiscoveredResourceCountsResponse_nextToken,
getDiscoveredResourceCountsResponse_resourceCounts,
getDiscoveredResourceCountsResponse_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 GetDiscoveredResourceCounts = GetDiscoveredResourceCounts'
{
GetDiscoveredResourceCounts -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetDiscoveredResourceCounts -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural,
GetDiscoveredResourceCounts -> Maybe [Text]
resourceTypes :: Prelude.Maybe [Prelude.Text]
}
deriving (GetDiscoveredResourceCounts -> GetDiscoveredResourceCounts -> Bool
(GetDiscoveredResourceCounts
-> GetDiscoveredResourceCounts -> Bool)
-> (GetDiscoveredResourceCounts
-> GetDiscoveredResourceCounts -> Bool)
-> Eq GetDiscoveredResourceCounts
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDiscoveredResourceCounts -> GetDiscoveredResourceCounts -> Bool
$c/= :: GetDiscoveredResourceCounts -> GetDiscoveredResourceCounts -> Bool
== :: GetDiscoveredResourceCounts -> GetDiscoveredResourceCounts -> Bool
$c== :: GetDiscoveredResourceCounts -> GetDiscoveredResourceCounts -> Bool
Prelude.Eq, ReadPrec [GetDiscoveredResourceCounts]
ReadPrec GetDiscoveredResourceCounts
Int -> ReadS GetDiscoveredResourceCounts
ReadS [GetDiscoveredResourceCounts]
(Int -> ReadS GetDiscoveredResourceCounts)
-> ReadS [GetDiscoveredResourceCounts]
-> ReadPrec GetDiscoveredResourceCounts
-> ReadPrec [GetDiscoveredResourceCounts]
-> Read GetDiscoveredResourceCounts
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDiscoveredResourceCounts]
$creadListPrec :: ReadPrec [GetDiscoveredResourceCounts]
readPrec :: ReadPrec GetDiscoveredResourceCounts
$creadPrec :: ReadPrec GetDiscoveredResourceCounts
readList :: ReadS [GetDiscoveredResourceCounts]
$creadList :: ReadS [GetDiscoveredResourceCounts]
readsPrec :: Int -> ReadS GetDiscoveredResourceCounts
$creadsPrec :: Int -> ReadS GetDiscoveredResourceCounts
Prelude.Read, Int -> GetDiscoveredResourceCounts -> ShowS
[GetDiscoveredResourceCounts] -> ShowS
GetDiscoveredResourceCounts -> String
(Int -> GetDiscoveredResourceCounts -> ShowS)
-> (GetDiscoveredResourceCounts -> String)
-> ([GetDiscoveredResourceCounts] -> ShowS)
-> Show GetDiscoveredResourceCounts
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDiscoveredResourceCounts] -> ShowS
$cshowList :: [GetDiscoveredResourceCounts] -> ShowS
show :: GetDiscoveredResourceCounts -> String
$cshow :: GetDiscoveredResourceCounts -> String
showsPrec :: Int -> GetDiscoveredResourceCounts -> ShowS
$cshowsPrec :: Int -> GetDiscoveredResourceCounts -> ShowS
Prelude.Show, (forall x.
GetDiscoveredResourceCounts -> Rep GetDiscoveredResourceCounts x)
-> (forall x.
Rep GetDiscoveredResourceCounts x -> GetDiscoveredResourceCounts)
-> Generic GetDiscoveredResourceCounts
forall x.
Rep GetDiscoveredResourceCounts x -> GetDiscoveredResourceCounts
forall x.
GetDiscoveredResourceCounts -> Rep GetDiscoveredResourceCounts x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDiscoveredResourceCounts x -> GetDiscoveredResourceCounts
$cfrom :: forall x.
GetDiscoveredResourceCounts -> Rep GetDiscoveredResourceCounts x
Prelude.Generic)
newGetDiscoveredResourceCounts ::
GetDiscoveredResourceCounts
newGetDiscoveredResourceCounts :: GetDiscoveredResourceCounts
newGetDiscoveredResourceCounts =
GetDiscoveredResourceCounts' :: Maybe Text
-> Maybe Natural -> Maybe [Text] -> GetDiscoveredResourceCounts
GetDiscoveredResourceCounts'
{ $sel:nextToken:GetDiscoveredResourceCounts' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:GetDiscoveredResourceCounts' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:resourceTypes:GetDiscoveredResourceCounts' :: Maybe [Text]
resourceTypes = Maybe [Text]
forall a. Maybe a
Prelude.Nothing
}
getDiscoveredResourceCounts_nextToken :: Lens.Lens' GetDiscoveredResourceCounts (Prelude.Maybe Prelude.Text)
getDiscoveredResourceCounts_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetDiscoveredResourceCounts -> f GetDiscoveredResourceCounts
getDiscoveredResourceCounts_nextToken = (GetDiscoveredResourceCounts -> Maybe Text)
-> (GetDiscoveredResourceCounts
-> Maybe Text -> GetDiscoveredResourceCounts)
-> Lens
GetDiscoveredResourceCounts
GetDiscoveredResourceCounts
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoveredResourceCounts' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetDiscoveredResourceCounts' :: GetDiscoveredResourceCounts -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetDiscoveredResourceCounts
s@GetDiscoveredResourceCounts' {} Maybe Text
a -> GetDiscoveredResourceCounts
s {$sel:nextToken:GetDiscoveredResourceCounts' :: Maybe Text
nextToken = Maybe Text
a} :: GetDiscoveredResourceCounts)
getDiscoveredResourceCounts_limit :: Lens.Lens' GetDiscoveredResourceCounts (Prelude.Maybe Prelude.Natural)
getDiscoveredResourceCounts_limit :: (Maybe Natural -> f (Maybe Natural))
-> GetDiscoveredResourceCounts -> f GetDiscoveredResourceCounts
getDiscoveredResourceCounts_limit = (GetDiscoveredResourceCounts -> Maybe Natural)
-> (GetDiscoveredResourceCounts
-> Maybe Natural -> GetDiscoveredResourceCounts)
-> Lens
GetDiscoveredResourceCounts
GetDiscoveredResourceCounts
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoveredResourceCounts' {Maybe Natural
limit :: Maybe Natural
$sel:limit:GetDiscoveredResourceCounts' :: GetDiscoveredResourceCounts -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: GetDiscoveredResourceCounts
s@GetDiscoveredResourceCounts' {} Maybe Natural
a -> GetDiscoveredResourceCounts
s {$sel:limit:GetDiscoveredResourceCounts' :: Maybe Natural
limit = Maybe Natural
a} :: GetDiscoveredResourceCounts)
getDiscoveredResourceCounts_resourceTypes :: Lens.Lens' GetDiscoveredResourceCounts (Prelude.Maybe [Prelude.Text])
getDiscoveredResourceCounts_resourceTypes :: (Maybe [Text] -> f (Maybe [Text]))
-> GetDiscoveredResourceCounts -> f GetDiscoveredResourceCounts
getDiscoveredResourceCounts_resourceTypes = (GetDiscoveredResourceCounts -> Maybe [Text])
-> (GetDiscoveredResourceCounts
-> Maybe [Text] -> GetDiscoveredResourceCounts)
-> Lens
GetDiscoveredResourceCounts
GetDiscoveredResourceCounts
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoveredResourceCounts' {Maybe [Text]
resourceTypes :: Maybe [Text]
$sel:resourceTypes:GetDiscoveredResourceCounts' :: GetDiscoveredResourceCounts -> Maybe [Text]
resourceTypes} -> Maybe [Text]
resourceTypes) (\s :: GetDiscoveredResourceCounts
s@GetDiscoveredResourceCounts' {} Maybe [Text]
a -> GetDiscoveredResourceCounts
s {$sel:resourceTypes:GetDiscoveredResourceCounts' :: Maybe [Text]
resourceTypes = Maybe [Text]
a} :: GetDiscoveredResourceCounts) ((Maybe [Text] -> f (Maybe [Text]))
-> GetDiscoveredResourceCounts -> f GetDiscoveredResourceCounts)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetDiscoveredResourceCounts
-> f GetDiscoveredResourceCounts
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.AWSRequest GetDiscoveredResourceCounts where
type
AWSResponse GetDiscoveredResourceCounts =
GetDiscoveredResourceCountsResponse
request :: GetDiscoveredResourceCounts -> Request GetDiscoveredResourceCounts
request = Service
-> GetDiscoveredResourceCounts
-> Request GetDiscoveredResourceCounts
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetDiscoveredResourceCounts
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDiscoveredResourceCounts)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetDiscoveredResourceCounts))
-> Logger
-> Service
-> Proxy GetDiscoveredResourceCounts
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDiscoveredResourceCounts)))
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 Integer
-> Maybe Text
-> Maybe [ResourceCount]
-> Int
-> GetDiscoveredResourceCountsResponse
GetDiscoveredResourceCountsResponse'
(Maybe Integer
-> Maybe Text
-> Maybe [ResourceCount]
-> Int
-> GetDiscoveredResourceCountsResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Text
-> Maybe [ResourceCount]
-> Int
-> GetDiscoveredResourceCountsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"totalDiscoveredResources")
Either
String
(Maybe Text
-> Maybe [ResourceCount]
-> Int
-> GetDiscoveredResourceCountsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ResourceCount]
-> Int -> GetDiscoveredResourceCountsResponse)
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
(Maybe [ResourceCount]
-> Int -> GetDiscoveredResourceCountsResponse)
-> Either String (Maybe [ResourceCount])
-> Either String (Int -> GetDiscoveredResourceCountsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [ResourceCount]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resourceCounts" Either String (Maybe (Maybe [ResourceCount]))
-> Maybe [ResourceCount] -> Either String (Maybe [ResourceCount])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ResourceCount]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetDiscoveredResourceCountsResponse)
-> Either String Int
-> Either String GetDiscoveredResourceCountsResponse
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 GetDiscoveredResourceCounts
instance Prelude.NFData GetDiscoveredResourceCounts
instance Core.ToHeaders GetDiscoveredResourceCounts where
toHeaders :: GetDiscoveredResourceCounts -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetDiscoveredResourceCounts -> 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.GetDiscoveredResourceCounts" ::
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 GetDiscoveredResourceCounts where
toJSON :: GetDiscoveredResourceCounts -> Value
toJSON GetDiscoveredResourceCounts' {Maybe Natural
Maybe [Text]
Maybe Text
resourceTypes :: Maybe [Text]
limit :: Maybe Natural
nextToken :: Maybe Text
$sel:resourceTypes:GetDiscoveredResourceCounts' :: GetDiscoveredResourceCounts -> Maybe [Text]
$sel:limit:GetDiscoveredResourceCounts' :: GetDiscoveredResourceCounts -> Maybe Natural
$sel:nextToken:GetDiscoveredResourceCounts' :: GetDiscoveredResourceCounts -> 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
"resourceTypes" 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]
resourceTypes
]
)
instance Core.ToPath GetDiscoveredResourceCounts where
toPath :: GetDiscoveredResourceCounts -> ByteString
toPath = ByteString -> GetDiscoveredResourceCounts -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetDiscoveredResourceCounts where
toQuery :: GetDiscoveredResourceCounts -> QueryString
toQuery = QueryString -> GetDiscoveredResourceCounts -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetDiscoveredResourceCountsResponse = GetDiscoveredResourceCountsResponse'
{
GetDiscoveredResourceCountsResponse -> Maybe Integer
totalDiscoveredResources :: Prelude.Maybe Prelude.Integer,
GetDiscoveredResourceCountsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetDiscoveredResourceCountsResponse -> Maybe [ResourceCount]
resourceCounts :: Prelude.Maybe [ResourceCount],
GetDiscoveredResourceCountsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetDiscoveredResourceCountsResponse
-> GetDiscoveredResourceCountsResponse -> Bool
(GetDiscoveredResourceCountsResponse
-> GetDiscoveredResourceCountsResponse -> Bool)
-> (GetDiscoveredResourceCountsResponse
-> GetDiscoveredResourceCountsResponse -> Bool)
-> Eq GetDiscoveredResourceCountsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDiscoveredResourceCountsResponse
-> GetDiscoveredResourceCountsResponse -> Bool
$c/= :: GetDiscoveredResourceCountsResponse
-> GetDiscoveredResourceCountsResponse -> Bool
== :: GetDiscoveredResourceCountsResponse
-> GetDiscoveredResourceCountsResponse -> Bool
$c== :: GetDiscoveredResourceCountsResponse
-> GetDiscoveredResourceCountsResponse -> Bool
Prelude.Eq, ReadPrec [GetDiscoveredResourceCountsResponse]
ReadPrec GetDiscoveredResourceCountsResponse
Int -> ReadS GetDiscoveredResourceCountsResponse
ReadS [GetDiscoveredResourceCountsResponse]
(Int -> ReadS GetDiscoveredResourceCountsResponse)
-> ReadS [GetDiscoveredResourceCountsResponse]
-> ReadPrec GetDiscoveredResourceCountsResponse
-> ReadPrec [GetDiscoveredResourceCountsResponse]
-> Read GetDiscoveredResourceCountsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDiscoveredResourceCountsResponse]
$creadListPrec :: ReadPrec [GetDiscoveredResourceCountsResponse]
readPrec :: ReadPrec GetDiscoveredResourceCountsResponse
$creadPrec :: ReadPrec GetDiscoveredResourceCountsResponse
readList :: ReadS [GetDiscoveredResourceCountsResponse]
$creadList :: ReadS [GetDiscoveredResourceCountsResponse]
readsPrec :: Int -> ReadS GetDiscoveredResourceCountsResponse
$creadsPrec :: Int -> ReadS GetDiscoveredResourceCountsResponse
Prelude.Read, Int -> GetDiscoveredResourceCountsResponse -> ShowS
[GetDiscoveredResourceCountsResponse] -> ShowS
GetDiscoveredResourceCountsResponse -> String
(Int -> GetDiscoveredResourceCountsResponse -> ShowS)
-> (GetDiscoveredResourceCountsResponse -> String)
-> ([GetDiscoveredResourceCountsResponse] -> ShowS)
-> Show GetDiscoveredResourceCountsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDiscoveredResourceCountsResponse] -> ShowS
$cshowList :: [GetDiscoveredResourceCountsResponse] -> ShowS
show :: GetDiscoveredResourceCountsResponse -> String
$cshow :: GetDiscoveredResourceCountsResponse -> String
showsPrec :: Int -> GetDiscoveredResourceCountsResponse -> ShowS
$cshowsPrec :: Int -> GetDiscoveredResourceCountsResponse -> ShowS
Prelude.Show, (forall x.
GetDiscoveredResourceCountsResponse
-> Rep GetDiscoveredResourceCountsResponse x)
-> (forall x.
Rep GetDiscoveredResourceCountsResponse x
-> GetDiscoveredResourceCountsResponse)
-> Generic GetDiscoveredResourceCountsResponse
forall x.
Rep GetDiscoveredResourceCountsResponse x
-> GetDiscoveredResourceCountsResponse
forall x.
GetDiscoveredResourceCountsResponse
-> Rep GetDiscoveredResourceCountsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDiscoveredResourceCountsResponse x
-> GetDiscoveredResourceCountsResponse
$cfrom :: forall x.
GetDiscoveredResourceCountsResponse
-> Rep GetDiscoveredResourceCountsResponse x
Prelude.Generic)
newGetDiscoveredResourceCountsResponse ::
Prelude.Int ->
GetDiscoveredResourceCountsResponse
newGetDiscoveredResourceCountsResponse :: Int -> GetDiscoveredResourceCountsResponse
newGetDiscoveredResourceCountsResponse Int
pHttpStatus_ =
GetDiscoveredResourceCountsResponse' :: Maybe Integer
-> Maybe Text
-> Maybe [ResourceCount]
-> Int
-> GetDiscoveredResourceCountsResponse
GetDiscoveredResourceCountsResponse'
{ $sel:totalDiscoveredResources:GetDiscoveredResourceCountsResponse' :: Maybe Integer
totalDiscoveredResources =
Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetDiscoveredResourceCountsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceCounts:GetDiscoveredResourceCountsResponse' :: Maybe [ResourceCount]
resourceCounts = Maybe [ResourceCount]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetDiscoveredResourceCountsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getDiscoveredResourceCountsResponse_totalDiscoveredResources :: Lens.Lens' GetDiscoveredResourceCountsResponse (Prelude.Maybe Prelude.Integer)
getDiscoveredResourceCountsResponse_totalDiscoveredResources :: (Maybe Integer -> f (Maybe Integer))
-> GetDiscoveredResourceCountsResponse
-> f GetDiscoveredResourceCountsResponse
getDiscoveredResourceCountsResponse_totalDiscoveredResources = (GetDiscoveredResourceCountsResponse -> Maybe Integer)
-> (GetDiscoveredResourceCountsResponse
-> Maybe Integer -> GetDiscoveredResourceCountsResponse)
-> Lens
GetDiscoveredResourceCountsResponse
GetDiscoveredResourceCountsResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoveredResourceCountsResponse' {Maybe Integer
totalDiscoveredResources :: Maybe Integer
$sel:totalDiscoveredResources:GetDiscoveredResourceCountsResponse' :: GetDiscoveredResourceCountsResponse -> Maybe Integer
totalDiscoveredResources} -> Maybe Integer
totalDiscoveredResources) (\s :: GetDiscoveredResourceCountsResponse
s@GetDiscoveredResourceCountsResponse' {} Maybe Integer
a -> GetDiscoveredResourceCountsResponse
s {$sel:totalDiscoveredResources:GetDiscoveredResourceCountsResponse' :: Maybe Integer
totalDiscoveredResources = Maybe Integer
a} :: GetDiscoveredResourceCountsResponse)
getDiscoveredResourceCountsResponse_nextToken :: Lens.Lens' GetDiscoveredResourceCountsResponse (Prelude.Maybe Prelude.Text)
getDiscoveredResourceCountsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetDiscoveredResourceCountsResponse
-> f GetDiscoveredResourceCountsResponse
getDiscoveredResourceCountsResponse_nextToken = (GetDiscoveredResourceCountsResponse -> Maybe Text)
-> (GetDiscoveredResourceCountsResponse
-> Maybe Text -> GetDiscoveredResourceCountsResponse)
-> Lens
GetDiscoveredResourceCountsResponse
GetDiscoveredResourceCountsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoveredResourceCountsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetDiscoveredResourceCountsResponse' :: GetDiscoveredResourceCountsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetDiscoveredResourceCountsResponse
s@GetDiscoveredResourceCountsResponse' {} Maybe Text
a -> GetDiscoveredResourceCountsResponse
s {$sel:nextToken:GetDiscoveredResourceCountsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetDiscoveredResourceCountsResponse)
getDiscoveredResourceCountsResponse_resourceCounts :: Lens.Lens' GetDiscoveredResourceCountsResponse (Prelude.Maybe [ResourceCount])
getDiscoveredResourceCountsResponse_resourceCounts :: (Maybe [ResourceCount] -> f (Maybe [ResourceCount]))
-> GetDiscoveredResourceCountsResponse
-> f GetDiscoveredResourceCountsResponse
getDiscoveredResourceCountsResponse_resourceCounts = (GetDiscoveredResourceCountsResponse -> Maybe [ResourceCount])
-> (GetDiscoveredResourceCountsResponse
-> Maybe [ResourceCount] -> GetDiscoveredResourceCountsResponse)
-> Lens
GetDiscoveredResourceCountsResponse
GetDiscoveredResourceCountsResponse
(Maybe [ResourceCount])
(Maybe [ResourceCount])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoveredResourceCountsResponse' {Maybe [ResourceCount]
resourceCounts :: Maybe [ResourceCount]
$sel:resourceCounts:GetDiscoveredResourceCountsResponse' :: GetDiscoveredResourceCountsResponse -> Maybe [ResourceCount]
resourceCounts} -> Maybe [ResourceCount]
resourceCounts) (\s :: GetDiscoveredResourceCountsResponse
s@GetDiscoveredResourceCountsResponse' {} Maybe [ResourceCount]
a -> GetDiscoveredResourceCountsResponse
s {$sel:resourceCounts:GetDiscoveredResourceCountsResponse' :: Maybe [ResourceCount]
resourceCounts = Maybe [ResourceCount]
a} :: GetDiscoveredResourceCountsResponse) ((Maybe [ResourceCount] -> f (Maybe [ResourceCount]))
-> GetDiscoveredResourceCountsResponse
-> f GetDiscoveredResourceCountsResponse)
-> ((Maybe [ResourceCount] -> f (Maybe [ResourceCount]))
-> Maybe [ResourceCount] -> f (Maybe [ResourceCount]))
-> (Maybe [ResourceCount] -> f (Maybe [ResourceCount]))
-> GetDiscoveredResourceCountsResponse
-> f GetDiscoveredResourceCountsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ResourceCount] [ResourceCount] [ResourceCount] [ResourceCount]
-> Iso
(Maybe [ResourceCount])
(Maybe [ResourceCount])
(Maybe [ResourceCount])
(Maybe [ResourceCount])
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
[ResourceCount] [ResourceCount] [ResourceCount] [ResourceCount]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getDiscoveredResourceCountsResponse_httpStatus :: Lens.Lens' GetDiscoveredResourceCountsResponse Prelude.Int
getDiscoveredResourceCountsResponse_httpStatus :: (Int -> f Int)
-> GetDiscoveredResourceCountsResponse
-> f GetDiscoveredResourceCountsResponse
getDiscoveredResourceCountsResponse_httpStatus = (GetDiscoveredResourceCountsResponse -> Int)
-> (GetDiscoveredResourceCountsResponse
-> Int -> GetDiscoveredResourceCountsResponse)
-> Lens
GetDiscoveredResourceCountsResponse
GetDiscoveredResourceCountsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoveredResourceCountsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetDiscoveredResourceCountsResponse' :: GetDiscoveredResourceCountsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetDiscoveredResourceCountsResponse
s@GetDiscoveredResourceCountsResponse' {} Int
a -> GetDiscoveredResourceCountsResponse
s {$sel:httpStatus:GetDiscoveredResourceCountsResponse' :: Int
httpStatus = Int
a} :: GetDiscoveredResourceCountsResponse)
instance
Prelude.NFData
GetDiscoveredResourceCountsResponse