{-# 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.XRay.GetInsightImpactGraph
-- 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 service graph structure filtered by the specified insight.
-- The service graph is limited to only structural information. For a
-- complete service graph, use this API with the GetServiceGraph API.
module Amazonka.XRay.GetInsightImpactGraph
  ( -- * Creating a Request
    GetInsightImpactGraph (..),
    newGetInsightImpactGraph,

    -- * Request Lenses
    getInsightImpactGraph_nextToken,
    getInsightImpactGraph_insightId,
    getInsightImpactGraph_startTime,
    getInsightImpactGraph_endTime,

    -- * Destructuring the Response
    GetInsightImpactGraphResponse (..),
    newGetInsightImpactGraphResponse,

    -- * Response Lenses
    getInsightImpactGraphResponse_serviceGraphStartTime,
    getInsightImpactGraphResponse_startTime,
    getInsightImpactGraphResponse_insightId,
    getInsightImpactGraphResponse_nextToken,
    getInsightImpactGraphResponse_endTime,
    getInsightImpactGraphResponse_serviceGraphEndTime,
    getInsightImpactGraphResponse_services,
    getInsightImpactGraphResponse_httpStatus,
  )
where

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
import Amazonka.XRay.Types

-- | /See:/ 'newGetInsightImpactGraph' smart constructor.
data GetInsightImpactGraph = GetInsightImpactGraph'
  { -- | Specify the pagination token returned by a previous request to retrieve
    -- the next page of results.
    GetInsightImpactGraph -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The insight\'s unique identifier. Use the GetInsightSummaries action to
    -- retrieve an InsightId.
    GetInsightImpactGraph -> Text
insightId :: Prelude.Text,
    -- | The estimated start time of the insight, in Unix time seconds. The
    -- StartTime is inclusive of the value provided and can\'t be more than 30
    -- days old.
    GetInsightImpactGraph -> POSIX
startTime :: Core.POSIX,
    -- | The estimated end time of the insight, in Unix time seconds. The EndTime
    -- is exclusive of the value provided. The time range between the start
    -- time and end time can\'t be more than six hours.
    GetInsightImpactGraph -> POSIX
endTime :: Core.POSIX
  }
  deriving (GetInsightImpactGraph -> GetInsightImpactGraph -> Bool
(GetInsightImpactGraph -> GetInsightImpactGraph -> Bool)
-> (GetInsightImpactGraph -> GetInsightImpactGraph -> Bool)
-> Eq GetInsightImpactGraph
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetInsightImpactGraph -> GetInsightImpactGraph -> Bool
$c/= :: GetInsightImpactGraph -> GetInsightImpactGraph -> Bool
== :: GetInsightImpactGraph -> GetInsightImpactGraph -> Bool
$c== :: GetInsightImpactGraph -> GetInsightImpactGraph -> Bool
Prelude.Eq, ReadPrec [GetInsightImpactGraph]
ReadPrec GetInsightImpactGraph
Int -> ReadS GetInsightImpactGraph
ReadS [GetInsightImpactGraph]
(Int -> ReadS GetInsightImpactGraph)
-> ReadS [GetInsightImpactGraph]
-> ReadPrec GetInsightImpactGraph
-> ReadPrec [GetInsightImpactGraph]
-> Read GetInsightImpactGraph
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetInsightImpactGraph]
$creadListPrec :: ReadPrec [GetInsightImpactGraph]
readPrec :: ReadPrec GetInsightImpactGraph
$creadPrec :: ReadPrec GetInsightImpactGraph
readList :: ReadS [GetInsightImpactGraph]
$creadList :: ReadS [GetInsightImpactGraph]
readsPrec :: Int -> ReadS GetInsightImpactGraph
$creadsPrec :: Int -> ReadS GetInsightImpactGraph
Prelude.Read, Int -> GetInsightImpactGraph -> ShowS
[GetInsightImpactGraph] -> ShowS
GetInsightImpactGraph -> String
(Int -> GetInsightImpactGraph -> ShowS)
-> (GetInsightImpactGraph -> String)
-> ([GetInsightImpactGraph] -> ShowS)
-> Show GetInsightImpactGraph
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetInsightImpactGraph] -> ShowS
$cshowList :: [GetInsightImpactGraph] -> ShowS
show :: GetInsightImpactGraph -> String
$cshow :: GetInsightImpactGraph -> String
showsPrec :: Int -> GetInsightImpactGraph -> ShowS
$cshowsPrec :: Int -> GetInsightImpactGraph -> ShowS
Prelude.Show, (forall x. GetInsightImpactGraph -> Rep GetInsightImpactGraph x)
-> (forall x. Rep GetInsightImpactGraph x -> GetInsightImpactGraph)
-> Generic GetInsightImpactGraph
forall x. Rep GetInsightImpactGraph x -> GetInsightImpactGraph
forall x. GetInsightImpactGraph -> Rep GetInsightImpactGraph x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetInsightImpactGraph x -> GetInsightImpactGraph
$cfrom :: forall x. GetInsightImpactGraph -> Rep GetInsightImpactGraph x
Prelude.Generic)

-- |
-- Create a value of 'GetInsightImpactGraph' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'getInsightImpactGraph_nextToken' - Specify the pagination token returned by a previous request to retrieve
-- the next page of results.
--
-- 'insightId', 'getInsightImpactGraph_insightId' - The insight\'s unique identifier. Use the GetInsightSummaries action to
-- retrieve an InsightId.
--
-- 'startTime', 'getInsightImpactGraph_startTime' - The estimated start time of the insight, in Unix time seconds. The
-- StartTime is inclusive of the value provided and can\'t be more than 30
-- days old.
--
-- 'endTime', 'getInsightImpactGraph_endTime' - The estimated end time of the insight, in Unix time seconds. The EndTime
-- is exclusive of the value provided. The time range between the start
-- time and end time can\'t be more than six hours.
newGetInsightImpactGraph ::
  -- | 'insightId'
  Prelude.Text ->
  -- | 'startTime'
  Prelude.UTCTime ->
  -- | 'endTime'
  Prelude.UTCTime ->
  GetInsightImpactGraph
newGetInsightImpactGraph :: Text -> UTCTime -> UTCTime -> GetInsightImpactGraph
newGetInsightImpactGraph
  Text
pInsightId_
  UTCTime
pStartTime_
  UTCTime
pEndTime_ =
    GetInsightImpactGraph' :: Maybe Text -> Text -> POSIX -> POSIX -> GetInsightImpactGraph
GetInsightImpactGraph'
      { $sel:nextToken:GetInsightImpactGraph' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:insightId:GetInsightImpactGraph' :: Text
insightId = Text
pInsightId_,
        $sel:startTime:GetInsightImpactGraph' :: POSIX
startTime = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pStartTime_,
        $sel:endTime:GetInsightImpactGraph' :: POSIX
endTime = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pEndTime_
      }

-- | Specify the pagination token returned by a previous request to retrieve
-- the next page of results.
getInsightImpactGraph_nextToken :: Lens.Lens' GetInsightImpactGraph (Prelude.Maybe Prelude.Text)
getInsightImpactGraph_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetInsightImpactGraph -> f GetInsightImpactGraph
getInsightImpactGraph_nextToken = (GetInsightImpactGraph -> Maybe Text)
-> (GetInsightImpactGraph -> Maybe Text -> GetInsightImpactGraph)
-> Lens
     GetInsightImpactGraph
     GetInsightImpactGraph
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraph' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetInsightImpactGraph' :: GetInsightImpactGraph -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetInsightImpactGraph
s@GetInsightImpactGraph' {} Maybe Text
a -> GetInsightImpactGraph
s {$sel:nextToken:GetInsightImpactGraph' :: Maybe Text
nextToken = Maybe Text
a} :: GetInsightImpactGraph)

-- | The insight\'s unique identifier. Use the GetInsightSummaries action to
-- retrieve an InsightId.
getInsightImpactGraph_insightId :: Lens.Lens' GetInsightImpactGraph Prelude.Text
getInsightImpactGraph_insightId :: (Text -> f Text)
-> GetInsightImpactGraph -> f GetInsightImpactGraph
getInsightImpactGraph_insightId = (GetInsightImpactGraph -> Text)
-> (GetInsightImpactGraph -> Text -> GetInsightImpactGraph)
-> Lens GetInsightImpactGraph GetInsightImpactGraph Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraph' {Text
insightId :: Text
$sel:insightId:GetInsightImpactGraph' :: GetInsightImpactGraph -> Text
insightId} -> Text
insightId) (\s :: GetInsightImpactGraph
s@GetInsightImpactGraph' {} Text
a -> GetInsightImpactGraph
s {$sel:insightId:GetInsightImpactGraph' :: Text
insightId = Text
a} :: GetInsightImpactGraph)

-- | The estimated start time of the insight, in Unix time seconds. The
-- StartTime is inclusive of the value provided and can\'t be more than 30
-- days old.
getInsightImpactGraph_startTime :: Lens.Lens' GetInsightImpactGraph Prelude.UTCTime
getInsightImpactGraph_startTime :: (UTCTime -> f UTCTime)
-> GetInsightImpactGraph -> f GetInsightImpactGraph
getInsightImpactGraph_startTime = (GetInsightImpactGraph -> POSIX)
-> (GetInsightImpactGraph -> POSIX -> GetInsightImpactGraph)
-> Lens GetInsightImpactGraph GetInsightImpactGraph POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraph' {POSIX
startTime :: POSIX
$sel:startTime:GetInsightImpactGraph' :: GetInsightImpactGraph -> POSIX
startTime} -> POSIX
startTime) (\s :: GetInsightImpactGraph
s@GetInsightImpactGraph' {} POSIX
a -> GetInsightImpactGraph
s {$sel:startTime:GetInsightImpactGraph' :: POSIX
startTime = POSIX
a} :: GetInsightImpactGraph) ((POSIX -> f POSIX)
 -> GetInsightImpactGraph -> f GetInsightImpactGraph)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> GetInsightImpactGraph
-> f GetInsightImpactGraph
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The estimated end time of the insight, in Unix time seconds. The EndTime
-- is exclusive of the value provided. The time range between the start
-- time and end time can\'t be more than six hours.
getInsightImpactGraph_endTime :: Lens.Lens' GetInsightImpactGraph Prelude.UTCTime
getInsightImpactGraph_endTime :: (UTCTime -> f UTCTime)
-> GetInsightImpactGraph -> f GetInsightImpactGraph
getInsightImpactGraph_endTime = (GetInsightImpactGraph -> POSIX)
-> (GetInsightImpactGraph -> POSIX -> GetInsightImpactGraph)
-> Lens GetInsightImpactGraph GetInsightImpactGraph POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraph' {POSIX
endTime :: POSIX
$sel:endTime:GetInsightImpactGraph' :: GetInsightImpactGraph -> POSIX
endTime} -> POSIX
endTime) (\s :: GetInsightImpactGraph
s@GetInsightImpactGraph' {} POSIX
a -> GetInsightImpactGraph
s {$sel:endTime:GetInsightImpactGraph' :: POSIX
endTime = POSIX
a} :: GetInsightImpactGraph) ((POSIX -> f POSIX)
 -> GetInsightImpactGraph -> f GetInsightImpactGraph)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> GetInsightImpactGraph
-> f GetInsightImpactGraph
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

instance Core.AWSRequest GetInsightImpactGraph where
  type
    AWSResponse GetInsightImpactGraph =
      GetInsightImpactGraphResponse
  request :: GetInsightImpactGraph -> Request GetInsightImpactGraph
request = Service -> GetInsightImpactGraph -> Request GetInsightImpactGraph
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetInsightImpactGraph
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetInsightImpactGraph)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetInsightImpactGraph))
-> Logger
-> Service
-> Proxy GetInsightImpactGraph
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetInsightImpactGraph)))
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 POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse
GetInsightImpactGraphResponse'
            (Maybe POSIX
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe POSIX
 -> Maybe [InsightImpactGraphService]
 -> Int
 -> GetInsightImpactGraphResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe [InsightImpactGraphService]
      -> Int
      -> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ServiceGraphStartTime")
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe [InsightImpactGraphService]
   -> Int
   -> GetInsightImpactGraphResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe [InsightImpactGraphService]
      -> Int
      -> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StartTime")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe [InsightImpactGraphService]
   -> Int
   -> GetInsightImpactGraphResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe [InsightImpactGraphService]
      -> Int
      -> GetInsightImpactGraphResponse)
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
"InsightId")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe [InsightImpactGraphService]
   -> Int
   -> GetInsightImpactGraphResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe POSIX
      -> Maybe [InsightImpactGraphService]
      -> Int
      -> GetInsightImpactGraphResponse)
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 POSIX
   -> Maybe POSIX
   -> Maybe [InsightImpactGraphService]
   -> Int
   -> GetInsightImpactGraphResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe POSIX
      -> Maybe [InsightImpactGraphService]
      -> Int
      -> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EndTime")
            Either
  String
  (Maybe POSIX
   -> Maybe [InsightImpactGraphService]
   -> Int
   -> GetInsightImpactGraphResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe [InsightImpactGraphService]
      -> Int -> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ServiceGraphEndTime")
            Either
  String
  (Maybe [InsightImpactGraphService]
   -> Int -> GetInsightImpactGraphResponse)
-> Either String (Maybe [InsightImpactGraphService])
-> Either String (Int -> GetInsightImpactGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [InsightImpactGraphService]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Services" Either String (Maybe (Maybe [InsightImpactGraphService]))
-> Maybe [InsightImpactGraphService]
-> Either String (Maybe [InsightImpactGraphService])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [InsightImpactGraphService]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> GetInsightImpactGraphResponse)
-> Either String Int -> Either String GetInsightImpactGraphResponse
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 GetInsightImpactGraph

instance Prelude.NFData GetInsightImpactGraph

instance Core.ToHeaders GetInsightImpactGraph where
  toHeaders :: GetInsightImpactGraph -> ResponseHeaders
toHeaders = ResponseHeaders -> GetInsightImpactGraph -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToJSON GetInsightImpactGraph where
  toJSON :: GetInsightImpactGraph -> Value
toJSON GetInsightImpactGraph' {Maybe Text
Text
POSIX
endTime :: POSIX
startTime :: POSIX
insightId :: Text
nextToken :: Maybe Text
$sel:endTime:GetInsightImpactGraph' :: GetInsightImpactGraph -> POSIX
$sel:startTime:GetInsightImpactGraph' :: GetInsightImpactGraph -> POSIX
$sel:insightId:GetInsightImpactGraph' :: GetInsightImpactGraph -> Text
$sel:nextToken:GetInsightImpactGraph' :: GetInsightImpactGraph -> 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,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InsightId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
insightId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"StartTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= POSIX
startTime),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"EndTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= POSIX
endTime)
          ]
      )

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

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

-- | /See:/ 'newGetInsightImpactGraphResponse' smart constructor.
data GetInsightImpactGraphResponse = GetInsightImpactGraphResponse'
  { -- | The time, in Unix seconds, at which the service graph started.
    GetInsightImpactGraphResponse -> Maybe POSIX
serviceGraphStartTime :: Prelude.Maybe Core.POSIX,
    -- | The provided start time.
    GetInsightImpactGraphResponse -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
    -- | The insight\'s unique identifier.
    GetInsightImpactGraphResponse -> Maybe Text
insightId :: Prelude.Maybe Prelude.Text,
    -- | Pagination token.
    GetInsightImpactGraphResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The provided end time.
    GetInsightImpactGraphResponse -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
    -- | The time, in Unix seconds, at which the service graph ended.
    GetInsightImpactGraphResponse -> Maybe POSIX
serviceGraphEndTime :: Prelude.Maybe Core.POSIX,
    -- | The Amazon Web Services instrumented services related to the insight.
    GetInsightImpactGraphResponse -> Maybe [InsightImpactGraphService]
services :: Prelude.Maybe [InsightImpactGraphService],
    -- | The response's http status code.
    GetInsightImpactGraphResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool
(GetInsightImpactGraphResponse
 -> GetInsightImpactGraphResponse -> Bool)
-> (GetInsightImpactGraphResponse
    -> GetInsightImpactGraphResponse -> Bool)
-> Eq GetInsightImpactGraphResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool
$c/= :: GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool
== :: GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool
$c== :: GetInsightImpactGraphResponse
-> GetInsightImpactGraphResponse -> Bool
Prelude.Eq, ReadPrec [GetInsightImpactGraphResponse]
ReadPrec GetInsightImpactGraphResponse
Int -> ReadS GetInsightImpactGraphResponse
ReadS [GetInsightImpactGraphResponse]
(Int -> ReadS GetInsightImpactGraphResponse)
-> ReadS [GetInsightImpactGraphResponse]
-> ReadPrec GetInsightImpactGraphResponse
-> ReadPrec [GetInsightImpactGraphResponse]
-> Read GetInsightImpactGraphResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetInsightImpactGraphResponse]
$creadListPrec :: ReadPrec [GetInsightImpactGraphResponse]
readPrec :: ReadPrec GetInsightImpactGraphResponse
$creadPrec :: ReadPrec GetInsightImpactGraphResponse
readList :: ReadS [GetInsightImpactGraphResponse]
$creadList :: ReadS [GetInsightImpactGraphResponse]
readsPrec :: Int -> ReadS GetInsightImpactGraphResponse
$creadsPrec :: Int -> ReadS GetInsightImpactGraphResponse
Prelude.Read, Int -> GetInsightImpactGraphResponse -> ShowS
[GetInsightImpactGraphResponse] -> ShowS
GetInsightImpactGraphResponse -> String
(Int -> GetInsightImpactGraphResponse -> ShowS)
-> (GetInsightImpactGraphResponse -> String)
-> ([GetInsightImpactGraphResponse] -> ShowS)
-> Show GetInsightImpactGraphResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetInsightImpactGraphResponse] -> ShowS
$cshowList :: [GetInsightImpactGraphResponse] -> ShowS
show :: GetInsightImpactGraphResponse -> String
$cshow :: GetInsightImpactGraphResponse -> String
showsPrec :: Int -> GetInsightImpactGraphResponse -> ShowS
$cshowsPrec :: Int -> GetInsightImpactGraphResponse -> ShowS
Prelude.Show, (forall x.
 GetInsightImpactGraphResponse
 -> Rep GetInsightImpactGraphResponse x)
-> (forall x.
    Rep GetInsightImpactGraphResponse x
    -> GetInsightImpactGraphResponse)
-> Generic GetInsightImpactGraphResponse
forall x.
Rep GetInsightImpactGraphResponse x
-> GetInsightImpactGraphResponse
forall x.
GetInsightImpactGraphResponse
-> Rep GetInsightImpactGraphResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetInsightImpactGraphResponse x
-> GetInsightImpactGraphResponse
$cfrom :: forall x.
GetInsightImpactGraphResponse
-> Rep GetInsightImpactGraphResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetInsightImpactGraphResponse' 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:
--
-- 'serviceGraphStartTime', 'getInsightImpactGraphResponse_serviceGraphStartTime' - The time, in Unix seconds, at which the service graph started.
--
-- 'startTime', 'getInsightImpactGraphResponse_startTime' - The provided start time.
--
-- 'insightId', 'getInsightImpactGraphResponse_insightId' - The insight\'s unique identifier.
--
-- 'nextToken', 'getInsightImpactGraphResponse_nextToken' - Pagination token.
--
-- 'endTime', 'getInsightImpactGraphResponse_endTime' - The provided end time.
--
-- 'serviceGraphEndTime', 'getInsightImpactGraphResponse_serviceGraphEndTime' - The time, in Unix seconds, at which the service graph ended.
--
-- 'services', 'getInsightImpactGraphResponse_services' - The Amazon Web Services instrumented services related to the insight.
--
-- 'httpStatus', 'getInsightImpactGraphResponse_httpStatus' - The response's http status code.
newGetInsightImpactGraphResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetInsightImpactGraphResponse
newGetInsightImpactGraphResponse :: Int -> GetInsightImpactGraphResponse
newGetInsightImpactGraphResponse Int
pHttpStatus_ =
  GetInsightImpactGraphResponse' :: Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe [InsightImpactGraphService]
-> Int
-> GetInsightImpactGraphResponse
GetInsightImpactGraphResponse'
    { $sel:serviceGraphStartTime:GetInsightImpactGraphResponse' :: Maybe POSIX
serviceGraphStartTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:GetInsightImpactGraphResponse' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:insightId:GetInsightImpactGraphResponse' :: Maybe Text
insightId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:GetInsightImpactGraphResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:GetInsightImpactGraphResponse' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:serviceGraphEndTime:GetInsightImpactGraphResponse' :: Maybe POSIX
serviceGraphEndTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:services:GetInsightImpactGraphResponse' :: Maybe [InsightImpactGraphService]
services = Maybe [InsightImpactGraphService]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetInsightImpactGraphResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The time, in Unix seconds, at which the service graph started.
getInsightImpactGraphResponse_serviceGraphStartTime :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.UTCTime)
getInsightImpactGraphResponse_serviceGraphStartTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_serviceGraphStartTime = (GetInsightImpactGraphResponse -> Maybe POSIX)
-> (GetInsightImpactGraphResponse
    -> Maybe POSIX -> GetInsightImpactGraphResponse)
-> Lens
     GetInsightImpactGraphResponse
     GetInsightImpactGraphResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe POSIX
serviceGraphStartTime :: Maybe POSIX
$sel:serviceGraphStartTime:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe POSIX
serviceGraphStartTime} -> Maybe POSIX
serviceGraphStartTime) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe POSIX
a -> GetInsightImpactGraphResponse
s {$sel:serviceGraphStartTime:GetInsightImpactGraphResponse' :: Maybe POSIX
serviceGraphStartTime = Maybe POSIX
a} :: GetInsightImpactGraphResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetInsightImpactGraphResponse
 -> f GetInsightImpactGraphResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The provided start time.
getInsightImpactGraphResponse_startTime :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.UTCTime)
getInsightImpactGraphResponse_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_startTime = (GetInsightImpactGraphResponse -> Maybe POSIX)
-> (GetInsightImpactGraphResponse
    -> Maybe POSIX -> GetInsightImpactGraphResponse)
-> Lens
     GetInsightImpactGraphResponse
     GetInsightImpactGraphResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe POSIX
a -> GetInsightImpactGraphResponse
s {$sel:startTime:GetInsightImpactGraphResponse' :: Maybe POSIX
startTime = Maybe POSIX
a} :: GetInsightImpactGraphResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetInsightImpactGraphResponse
 -> f GetInsightImpactGraphResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The insight\'s unique identifier.
getInsightImpactGraphResponse_insightId :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.Text)
getInsightImpactGraphResponse_insightId :: (Maybe Text -> f (Maybe Text))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_insightId = (GetInsightImpactGraphResponse -> Maybe Text)
-> (GetInsightImpactGraphResponse
    -> Maybe Text -> GetInsightImpactGraphResponse)
-> Lens
     GetInsightImpactGraphResponse
     GetInsightImpactGraphResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe Text
insightId :: Maybe Text
$sel:insightId:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe Text
insightId} -> Maybe Text
insightId) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe Text
a -> GetInsightImpactGraphResponse
s {$sel:insightId:GetInsightImpactGraphResponse' :: Maybe Text
insightId = Maybe Text
a} :: GetInsightImpactGraphResponse)

-- | Pagination token.
getInsightImpactGraphResponse_nextToken :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.Text)
getInsightImpactGraphResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_nextToken = (GetInsightImpactGraphResponse -> Maybe Text)
-> (GetInsightImpactGraphResponse
    -> Maybe Text -> GetInsightImpactGraphResponse)
-> Lens
     GetInsightImpactGraphResponse
     GetInsightImpactGraphResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe Text
a -> GetInsightImpactGraphResponse
s {$sel:nextToken:GetInsightImpactGraphResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetInsightImpactGraphResponse)

-- | The provided end time.
getInsightImpactGraphResponse_endTime :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.UTCTime)
getInsightImpactGraphResponse_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_endTime = (GetInsightImpactGraphResponse -> Maybe POSIX)
-> (GetInsightImpactGraphResponse
    -> Maybe POSIX -> GetInsightImpactGraphResponse)
-> Lens
     GetInsightImpactGraphResponse
     GetInsightImpactGraphResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe POSIX
a -> GetInsightImpactGraphResponse
s {$sel:endTime:GetInsightImpactGraphResponse' :: Maybe POSIX
endTime = Maybe POSIX
a} :: GetInsightImpactGraphResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetInsightImpactGraphResponse
 -> f GetInsightImpactGraphResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The time, in Unix seconds, at which the service graph ended.
getInsightImpactGraphResponse_serviceGraphEndTime :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe Prelude.UTCTime)
getInsightImpactGraphResponse_serviceGraphEndTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_serviceGraphEndTime = (GetInsightImpactGraphResponse -> Maybe POSIX)
-> (GetInsightImpactGraphResponse
    -> Maybe POSIX -> GetInsightImpactGraphResponse)
-> Lens
     GetInsightImpactGraphResponse
     GetInsightImpactGraphResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe POSIX
serviceGraphEndTime :: Maybe POSIX
$sel:serviceGraphEndTime:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe POSIX
serviceGraphEndTime} -> Maybe POSIX
serviceGraphEndTime) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe POSIX
a -> GetInsightImpactGraphResponse
s {$sel:serviceGraphEndTime:GetInsightImpactGraphResponse' :: Maybe POSIX
serviceGraphEndTime = Maybe POSIX
a} :: GetInsightImpactGraphResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetInsightImpactGraphResponse
 -> f GetInsightImpactGraphResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The Amazon Web Services instrumented services related to the insight.
getInsightImpactGraphResponse_services :: Lens.Lens' GetInsightImpactGraphResponse (Prelude.Maybe [InsightImpactGraphService])
getInsightImpactGraphResponse_services :: (Maybe [InsightImpactGraphService]
 -> f (Maybe [InsightImpactGraphService]))
-> GetInsightImpactGraphResponse -> f GetInsightImpactGraphResponse
getInsightImpactGraphResponse_services = (GetInsightImpactGraphResponse
 -> Maybe [InsightImpactGraphService])
-> (GetInsightImpactGraphResponse
    -> Maybe [InsightImpactGraphService]
    -> GetInsightImpactGraphResponse)
-> Lens
     GetInsightImpactGraphResponse
     GetInsightImpactGraphResponse
     (Maybe [InsightImpactGraphService])
     (Maybe [InsightImpactGraphService])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetInsightImpactGraphResponse' {Maybe [InsightImpactGraphService]
services :: Maybe [InsightImpactGraphService]
$sel:services:GetInsightImpactGraphResponse' :: GetInsightImpactGraphResponse -> Maybe [InsightImpactGraphService]
services} -> Maybe [InsightImpactGraphService]
services) (\s :: GetInsightImpactGraphResponse
s@GetInsightImpactGraphResponse' {} Maybe [InsightImpactGraphService]
a -> GetInsightImpactGraphResponse
s {$sel:services:GetInsightImpactGraphResponse' :: Maybe [InsightImpactGraphService]
services = Maybe [InsightImpactGraphService]
a} :: GetInsightImpactGraphResponse) ((Maybe [InsightImpactGraphService]
  -> f (Maybe [InsightImpactGraphService]))
 -> GetInsightImpactGraphResponse
 -> f GetInsightImpactGraphResponse)
-> ((Maybe [InsightImpactGraphService]
     -> f (Maybe [InsightImpactGraphService]))
    -> Maybe [InsightImpactGraphService]
    -> f (Maybe [InsightImpactGraphService]))
-> (Maybe [InsightImpactGraphService]
    -> f (Maybe [InsightImpactGraphService]))
-> GetInsightImpactGraphResponse
-> f GetInsightImpactGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [InsightImpactGraphService]
  [InsightImpactGraphService]
  [InsightImpactGraphService]
  [InsightImpactGraphService]
-> Iso
     (Maybe [InsightImpactGraphService])
     (Maybe [InsightImpactGraphService])
     (Maybe [InsightImpactGraphService])
     (Maybe [InsightImpactGraphService])
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
  [InsightImpactGraphService]
  [InsightImpactGraphService]
  [InsightImpactGraphService]
  [InsightImpactGraphService]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData GetInsightImpactGraphResponse