{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.Discovery.GetDiscoverySummary
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves a short summary of discovered assets.
--
-- This API operation takes no request parameters and is called as is at
-- the command prompt as shown in the example.
module Amazonka.Discovery.GetDiscoverySummary
  ( -- * Creating a Request
    GetDiscoverySummary (..),
    newGetDiscoverySummary,

    -- * Destructuring the Response
    GetDiscoverySummaryResponse (..),
    newGetDiscoverySummaryResponse,

    -- * Response Lenses
    getDiscoverySummaryResponse_servers,
    getDiscoverySummaryResponse_serversMappedtoTags,
    getDiscoverySummaryResponse_serversMappedToApplications,
    getDiscoverySummaryResponse_connectorSummary,
    getDiscoverySummaryResponse_agentSummary,
    getDiscoverySummaryResponse_applications,
    getDiscoverySummaryResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Discovery.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newGetDiscoverySummary' smart constructor.
data GetDiscoverySummary = GetDiscoverySummary'
  {
  }
  deriving (GetDiscoverySummary -> GetDiscoverySummary -> Bool
(GetDiscoverySummary -> GetDiscoverySummary -> Bool)
-> (GetDiscoverySummary -> GetDiscoverySummary -> Bool)
-> Eq GetDiscoverySummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDiscoverySummary -> GetDiscoverySummary -> Bool
$c/= :: GetDiscoverySummary -> GetDiscoverySummary -> Bool
== :: GetDiscoverySummary -> GetDiscoverySummary -> Bool
$c== :: GetDiscoverySummary -> GetDiscoverySummary -> Bool
Prelude.Eq, ReadPrec [GetDiscoverySummary]
ReadPrec GetDiscoverySummary
Int -> ReadS GetDiscoverySummary
ReadS [GetDiscoverySummary]
(Int -> ReadS GetDiscoverySummary)
-> ReadS [GetDiscoverySummary]
-> ReadPrec GetDiscoverySummary
-> ReadPrec [GetDiscoverySummary]
-> Read GetDiscoverySummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDiscoverySummary]
$creadListPrec :: ReadPrec [GetDiscoverySummary]
readPrec :: ReadPrec GetDiscoverySummary
$creadPrec :: ReadPrec GetDiscoverySummary
readList :: ReadS [GetDiscoverySummary]
$creadList :: ReadS [GetDiscoverySummary]
readsPrec :: Int -> ReadS GetDiscoverySummary
$creadsPrec :: Int -> ReadS GetDiscoverySummary
Prelude.Read, Int -> GetDiscoverySummary -> ShowS
[GetDiscoverySummary] -> ShowS
GetDiscoverySummary -> String
(Int -> GetDiscoverySummary -> ShowS)
-> (GetDiscoverySummary -> String)
-> ([GetDiscoverySummary] -> ShowS)
-> Show GetDiscoverySummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDiscoverySummary] -> ShowS
$cshowList :: [GetDiscoverySummary] -> ShowS
show :: GetDiscoverySummary -> String
$cshow :: GetDiscoverySummary -> String
showsPrec :: Int -> GetDiscoverySummary -> ShowS
$cshowsPrec :: Int -> GetDiscoverySummary -> ShowS
Prelude.Show, (forall x. GetDiscoverySummary -> Rep GetDiscoverySummary x)
-> (forall x. Rep GetDiscoverySummary x -> GetDiscoverySummary)
-> Generic GetDiscoverySummary
forall x. Rep GetDiscoverySummary x -> GetDiscoverySummary
forall x. GetDiscoverySummary -> Rep GetDiscoverySummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetDiscoverySummary x -> GetDiscoverySummary
$cfrom :: forall x. GetDiscoverySummary -> Rep GetDiscoverySummary x
Prelude.Generic)

-- |
-- Create a value of 'GetDiscoverySummary' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
newGetDiscoverySummary ::
  GetDiscoverySummary
newGetDiscoverySummary :: GetDiscoverySummary
newGetDiscoverySummary = GetDiscoverySummary
GetDiscoverySummary'

instance Core.AWSRequest GetDiscoverySummary where
  type
    AWSResponse GetDiscoverySummary =
      GetDiscoverySummaryResponse
  request :: GetDiscoverySummary -> Request GetDiscoverySummary
request = Service -> GetDiscoverySummary -> Request GetDiscoverySummary
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetDiscoverySummary
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetDiscoverySummary)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetDiscoverySummary))
-> Logger
-> Service
-> Proxy GetDiscoverySummary
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetDiscoverySummary)))
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 Integer
-> Maybe Integer
-> Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse
GetDiscoverySummaryResponse'
            (Maybe Integer
 -> Maybe Integer
 -> Maybe Integer
 -> Maybe CustomerConnectorInfo
 -> Maybe CustomerAgentInfo
 -> Maybe Integer
 -> Int
 -> GetDiscoverySummaryResponse)
-> Either String (Maybe Integer)
-> Either
     String
     (Maybe Integer
      -> Maybe Integer
      -> Maybe CustomerConnectorInfo
      -> Maybe CustomerAgentInfo
      -> Maybe Integer
      -> Int
      -> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Key -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"servers")
            Either
  String
  (Maybe Integer
   -> Maybe Integer
   -> Maybe CustomerConnectorInfo
   -> Maybe CustomerAgentInfo
   -> Maybe Integer
   -> Int
   -> GetDiscoverySummaryResponse)
-> Either String (Maybe Integer)
-> Either
     String
     (Maybe Integer
      -> Maybe CustomerConnectorInfo
      -> Maybe CustomerAgentInfo
      -> Maybe Integer
      -> Int
      -> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"serversMappedtoTags")
            Either
  String
  (Maybe Integer
   -> Maybe CustomerConnectorInfo
   -> Maybe CustomerAgentInfo
   -> Maybe Integer
   -> Int
   -> GetDiscoverySummaryResponse)
-> Either String (Maybe Integer)
-> Either
     String
     (Maybe CustomerConnectorInfo
      -> Maybe CustomerAgentInfo
      -> Maybe Integer
      -> Int
      -> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"serversMappedToApplications")
            Either
  String
  (Maybe CustomerConnectorInfo
   -> Maybe CustomerAgentInfo
   -> Maybe Integer
   -> Int
   -> GetDiscoverySummaryResponse)
-> Either String (Maybe CustomerConnectorInfo)
-> Either
     String
     (Maybe CustomerAgentInfo
      -> Maybe Integer -> Int -> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe CustomerConnectorInfo)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"connectorSummary")
            Either
  String
  (Maybe CustomerAgentInfo
   -> Maybe Integer -> Int -> GetDiscoverySummaryResponse)
-> Either String (Maybe CustomerAgentInfo)
-> Either
     String (Maybe Integer -> Int -> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe CustomerAgentInfo)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"agentSummary")
            Either String (Maybe Integer -> Int -> GetDiscoverySummaryResponse)
-> Either String (Maybe Integer)
-> Either String (Int -> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"applications")
            Either String (Int -> GetDiscoverySummaryResponse)
-> Either String Int -> Either String GetDiscoverySummaryResponse
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 GetDiscoverySummary

instance Prelude.NFData GetDiscoverySummary

instance Core.ToHeaders GetDiscoverySummary where
  toHeaders :: GetDiscoverySummary -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetDiscoverySummary -> 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
"AWSPoseidonService_V2015_11_01.GetDiscoverySummary" ::
                          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 GetDiscoverySummary where
  toJSON :: GetDiscoverySummary -> Value
toJSON = Value -> GetDiscoverySummary -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)

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

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

-- | /See:/ 'newGetDiscoverySummaryResponse' smart constructor.
data GetDiscoverySummaryResponse = GetDiscoverySummaryResponse'
  { -- | The number of servers discovered.
    GetDiscoverySummaryResponse -> Maybe Integer
servers :: Prelude.Maybe Prelude.Integer,
    -- | The number of servers mapped to tags.
    GetDiscoverySummaryResponse -> Maybe Integer
serversMappedtoTags :: Prelude.Maybe Prelude.Integer,
    -- | The number of servers mapped to applications.
    GetDiscoverySummaryResponse -> Maybe Integer
serversMappedToApplications :: Prelude.Maybe Prelude.Integer,
    -- | Details about discovered connectors, including connector status and
    -- health.
    GetDiscoverySummaryResponse -> Maybe CustomerConnectorInfo
connectorSummary :: Prelude.Maybe CustomerConnectorInfo,
    -- | Details about discovered agents, including agent status and health.
    GetDiscoverySummaryResponse -> Maybe CustomerAgentInfo
agentSummary :: Prelude.Maybe CustomerAgentInfo,
    -- | The number of applications discovered.
    GetDiscoverySummaryResponse -> Maybe Integer
applications :: Prelude.Maybe Prelude.Integer,
    -- | The response's http status code.
    GetDiscoverySummaryResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetDiscoverySummaryResponse -> GetDiscoverySummaryResponse -> Bool
(GetDiscoverySummaryResponse
 -> GetDiscoverySummaryResponse -> Bool)
-> (GetDiscoverySummaryResponse
    -> GetDiscoverySummaryResponse -> Bool)
-> Eq GetDiscoverySummaryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDiscoverySummaryResponse -> GetDiscoverySummaryResponse -> Bool
$c/= :: GetDiscoverySummaryResponse -> GetDiscoverySummaryResponse -> Bool
== :: GetDiscoverySummaryResponse -> GetDiscoverySummaryResponse -> Bool
$c== :: GetDiscoverySummaryResponse -> GetDiscoverySummaryResponse -> Bool
Prelude.Eq, ReadPrec [GetDiscoverySummaryResponse]
ReadPrec GetDiscoverySummaryResponse
Int -> ReadS GetDiscoverySummaryResponse
ReadS [GetDiscoverySummaryResponse]
(Int -> ReadS GetDiscoverySummaryResponse)
-> ReadS [GetDiscoverySummaryResponse]
-> ReadPrec GetDiscoverySummaryResponse
-> ReadPrec [GetDiscoverySummaryResponse]
-> Read GetDiscoverySummaryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDiscoverySummaryResponse]
$creadListPrec :: ReadPrec [GetDiscoverySummaryResponse]
readPrec :: ReadPrec GetDiscoverySummaryResponse
$creadPrec :: ReadPrec GetDiscoverySummaryResponse
readList :: ReadS [GetDiscoverySummaryResponse]
$creadList :: ReadS [GetDiscoverySummaryResponse]
readsPrec :: Int -> ReadS GetDiscoverySummaryResponse
$creadsPrec :: Int -> ReadS GetDiscoverySummaryResponse
Prelude.Read, Int -> GetDiscoverySummaryResponse -> ShowS
[GetDiscoverySummaryResponse] -> ShowS
GetDiscoverySummaryResponse -> String
(Int -> GetDiscoverySummaryResponse -> ShowS)
-> (GetDiscoverySummaryResponse -> String)
-> ([GetDiscoverySummaryResponse] -> ShowS)
-> Show GetDiscoverySummaryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDiscoverySummaryResponse] -> ShowS
$cshowList :: [GetDiscoverySummaryResponse] -> ShowS
show :: GetDiscoverySummaryResponse -> String
$cshow :: GetDiscoverySummaryResponse -> String
showsPrec :: Int -> GetDiscoverySummaryResponse -> ShowS
$cshowsPrec :: Int -> GetDiscoverySummaryResponse -> ShowS
Prelude.Show, (forall x.
 GetDiscoverySummaryResponse -> Rep GetDiscoverySummaryResponse x)
-> (forall x.
    Rep GetDiscoverySummaryResponse x -> GetDiscoverySummaryResponse)
-> Generic GetDiscoverySummaryResponse
forall x.
Rep GetDiscoverySummaryResponse x -> GetDiscoverySummaryResponse
forall x.
GetDiscoverySummaryResponse -> Rep GetDiscoverySummaryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDiscoverySummaryResponse x -> GetDiscoverySummaryResponse
$cfrom :: forall x.
GetDiscoverySummaryResponse -> Rep GetDiscoverySummaryResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetDiscoverySummaryResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'servers', 'getDiscoverySummaryResponse_servers' - The number of servers discovered.
--
-- 'serversMappedtoTags', 'getDiscoverySummaryResponse_serversMappedtoTags' - The number of servers mapped to tags.
--
-- 'serversMappedToApplications', 'getDiscoverySummaryResponse_serversMappedToApplications' - The number of servers mapped to applications.
--
-- 'connectorSummary', 'getDiscoverySummaryResponse_connectorSummary' - Details about discovered connectors, including connector status and
-- health.
--
-- 'agentSummary', 'getDiscoverySummaryResponse_agentSummary' - Details about discovered agents, including agent status and health.
--
-- 'applications', 'getDiscoverySummaryResponse_applications' - The number of applications discovered.
--
-- 'httpStatus', 'getDiscoverySummaryResponse_httpStatus' - The response's http status code.
newGetDiscoverySummaryResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetDiscoverySummaryResponse
newGetDiscoverySummaryResponse :: Int -> GetDiscoverySummaryResponse
newGetDiscoverySummaryResponse Int
pHttpStatus_ =
  GetDiscoverySummaryResponse' :: Maybe Integer
-> Maybe Integer
-> Maybe Integer
-> Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse
GetDiscoverySummaryResponse'
    { $sel:servers:GetDiscoverySummaryResponse' :: Maybe Integer
servers =
        Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:serversMappedtoTags:GetDiscoverySummaryResponse' :: Maybe Integer
serversMappedtoTags = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:serversMappedToApplications:GetDiscoverySummaryResponse' :: Maybe Integer
serversMappedToApplications = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:connectorSummary:GetDiscoverySummaryResponse' :: Maybe CustomerConnectorInfo
connectorSummary = Maybe CustomerConnectorInfo
forall a. Maybe a
Prelude.Nothing,
      $sel:agentSummary:GetDiscoverySummaryResponse' :: Maybe CustomerAgentInfo
agentSummary = Maybe CustomerAgentInfo
forall a. Maybe a
Prelude.Nothing,
      $sel:applications:GetDiscoverySummaryResponse' :: Maybe Integer
applications = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetDiscoverySummaryResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The number of servers discovered.
getDiscoverySummaryResponse_servers :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe Prelude.Integer)
getDiscoverySummaryResponse_servers :: (Maybe Integer -> f (Maybe Integer))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_servers = (GetDiscoverySummaryResponse -> Maybe Integer)
-> (GetDiscoverySummaryResponse
    -> Maybe Integer -> GetDiscoverySummaryResponse)
-> Lens
     GetDiscoverySummaryResponse
     GetDiscoverySummaryResponse
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe Integer
servers :: Maybe Integer
$sel:servers:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe Integer
servers} -> Maybe Integer
servers) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe Integer
a -> GetDiscoverySummaryResponse
s {$sel:servers:GetDiscoverySummaryResponse' :: Maybe Integer
servers = Maybe Integer
a} :: GetDiscoverySummaryResponse)

-- | The number of servers mapped to tags.
getDiscoverySummaryResponse_serversMappedtoTags :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe Prelude.Integer)
getDiscoverySummaryResponse_serversMappedtoTags :: (Maybe Integer -> f (Maybe Integer))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_serversMappedtoTags = (GetDiscoverySummaryResponse -> Maybe Integer)
-> (GetDiscoverySummaryResponse
    -> Maybe Integer -> GetDiscoverySummaryResponse)
-> Lens
     GetDiscoverySummaryResponse
     GetDiscoverySummaryResponse
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe Integer
serversMappedtoTags :: Maybe Integer
$sel:serversMappedtoTags:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe Integer
serversMappedtoTags} -> Maybe Integer
serversMappedtoTags) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe Integer
a -> GetDiscoverySummaryResponse
s {$sel:serversMappedtoTags:GetDiscoverySummaryResponse' :: Maybe Integer
serversMappedtoTags = Maybe Integer
a} :: GetDiscoverySummaryResponse)

-- | The number of servers mapped to applications.
getDiscoverySummaryResponse_serversMappedToApplications :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe Prelude.Integer)
getDiscoverySummaryResponse_serversMappedToApplications :: (Maybe Integer -> f (Maybe Integer))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_serversMappedToApplications = (GetDiscoverySummaryResponse -> Maybe Integer)
-> (GetDiscoverySummaryResponse
    -> Maybe Integer -> GetDiscoverySummaryResponse)
-> Lens
     GetDiscoverySummaryResponse
     GetDiscoverySummaryResponse
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe Integer
serversMappedToApplications :: Maybe Integer
$sel:serversMappedToApplications:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe Integer
serversMappedToApplications} -> Maybe Integer
serversMappedToApplications) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe Integer
a -> GetDiscoverySummaryResponse
s {$sel:serversMappedToApplications:GetDiscoverySummaryResponse' :: Maybe Integer
serversMappedToApplications = Maybe Integer
a} :: GetDiscoverySummaryResponse)

-- | Details about discovered connectors, including connector status and
-- health.
getDiscoverySummaryResponse_connectorSummary :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe CustomerConnectorInfo)
getDiscoverySummaryResponse_connectorSummary :: (Maybe CustomerConnectorInfo -> f (Maybe CustomerConnectorInfo))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_connectorSummary = (GetDiscoverySummaryResponse -> Maybe CustomerConnectorInfo)
-> (GetDiscoverySummaryResponse
    -> Maybe CustomerConnectorInfo -> GetDiscoverySummaryResponse)
-> Lens
     GetDiscoverySummaryResponse
     GetDiscoverySummaryResponse
     (Maybe CustomerConnectorInfo)
     (Maybe CustomerConnectorInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe CustomerConnectorInfo
connectorSummary :: Maybe CustomerConnectorInfo
$sel:connectorSummary:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe CustomerConnectorInfo
connectorSummary} -> Maybe CustomerConnectorInfo
connectorSummary) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe CustomerConnectorInfo
a -> GetDiscoverySummaryResponse
s {$sel:connectorSummary:GetDiscoverySummaryResponse' :: Maybe CustomerConnectorInfo
connectorSummary = Maybe CustomerConnectorInfo
a} :: GetDiscoverySummaryResponse)

-- | Details about discovered agents, including agent status and health.
getDiscoverySummaryResponse_agentSummary :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe CustomerAgentInfo)
getDiscoverySummaryResponse_agentSummary :: (Maybe CustomerAgentInfo -> f (Maybe CustomerAgentInfo))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_agentSummary = (GetDiscoverySummaryResponse -> Maybe CustomerAgentInfo)
-> (GetDiscoverySummaryResponse
    -> Maybe CustomerAgentInfo -> GetDiscoverySummaryResponse)
-> Lens
     GetDiscoverySummaryResponse
     GetDiscoverySummaryResponse
     (Maybe CustomerAgentInfo)
     (Maybe CustomerAgentInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe CustomerAgentInfo
agentSummary :: Maybe CustomerAgentInfo
$sel:agentSummary:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe CustomerAgentInfo
agentSummary} -> Maybe CustomerAgentInfo
agentSummary) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe CustomerAgentInfo
a -> GetDiscoverySummaryResponse
s {$sel:agentSummary:GetDiscoverySummaryResponse' :: Maybe CustomerAgentInfo
agentSummary = Maybe CustomerAgentInfo
a} :: GetDiscoverySummaryResponse)

-- | The number of applications discovered.
getDiscoverySummaryResponse_applications :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe Prelude.Integer)
getDiscoverySummaryResponse_applications :: (Maybe Integer -> f (Maybe Integer))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_applications = (GetDiscoverySummaryResponse -> Maybe Integer)
-> (GetDiscoverySummaryResponse
    -> Maybe Integer -> GetDiscoverySummaryResponse)
-> Lens
     GetDiscoverySummaryResponse
     GetDiscoverySummaryResponse
     (Maybe Integer)
     (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe Integer
applications :: Maybe Integer
$sel:applications:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe Integer
applications} -> Maybe Integer
applications) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe Integer
a -> GetDiscoverySummaryResponse
s {$sel:applications:GetDiscoverySummaryResponse' :: Maybe Integer
applications = Maybe Integer
a} :: GetDiscoverySummaryResponse)

-- | The response's http status code.
getDiscoverySummaryResponse_httpStatus :: Lens.Lens' GetDiscoverySummaryResponse Prelude.Int
getDiscoverySummaryResponse_httpStatus :: (Int -> f Int)
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_httpStatus = (GetDiscoverySummaryResponse -> Int)
-> (GetDiscoverySummaryResponse
    -> Int -> GetDiscoverySummaryResponse)
-> Lens
     GetDiscoverySummaryResponse GetDiscoverySummaryResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Int
a -> GetDiscoverySummaryResponse
s {$sel:httpStatus:GetDiscoverySummaryResponse' :: Int
httpStatus = Int
a} :: GetDiscoverySummaryResponse)

instance Prelude.NFData GetDiscoverySummaryResponse