{-# 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.SageMaker.GetDeviceFleetReport
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Describes a fleet.
module Amazonka.SageMaker.GetDeviceFleetReport
  ( -- * Creating a Request
    GetDeviceFleetReport (..),
    newGetDeviceFleetReport,

    -- * Request Lenses
    getDeviceFleetReport_deviceFleetName,

    -- * Destructuring the Response
    GetDeviceFleetReportResponse (..),
    newGetDeviceFleetReportResponse,

    -- * Response Lenses
    getDeviceFleetReportResponse_agentVersions,
    getDeviceFleetReportResponse_description,
    getDeviceFleetReportResponse_deviceStats,
    getDeviceFleetReportResponse_modelStats,
    getDeviceFleetReportResponse_outputConfig,
    getDeviceFleetReportResponse_reportGenerated,
    getDeviceFleetReportResponse_httpStatus,
    getDeviceFleetReportResponse_deviceFleetArn,
    getDeviceFleetReportResponse_deviceFleetName,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types

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

-- |
-- Create a value of 'GetDeviceFleetReport' 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:
--
-- 'deviceFleetName', 'getDeviceFleetReport_deviceFleetName' - The name of the fleet.
newGetDeviceFleetReport ::
  -- | 'deviceFleetName'
  Prelude.Text ->
  GetDeviceFleetReport
newGetDeviceFleetReport :: Text -> GetDeviceFleetReport
newGetDeviceFleetReport Text
pDeviceFleetName_ =
  GetDeviceFleetReport'
    { $sel:deviceFleetName:GetDeviceFleetReport' :: Text
deviceFleetName =
        Text
pDeviceFleetName_
    }

-- | The name of the fleet.
getDeviceFleetReport_deviceFleetName :: Lens.Lens' GetDeviceFleetReport Prelude.Text
getDeviceFleetReport_deviceFleetName :: Lens' GetDeviceFleetReport Text
getDeviceFleetReport_deviceFleetName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeviceFleetReport' {Text
deviceFleetName :: Text
$sel:deviceFleetName:GetDeviceFleetReport' :: GetDeviceFleetReport -> Text
deviceFleetName} -> Text
deviceFleetName) (\s :: GetDeviceFleetReport
s@GetDeviceFleetReport' {} Text
a -> GetDeviceFleetReport
s {$sel:deviceFleetName:GetDeviceFleetReport' :: Text
deviceFleetName = Text
a} :: GetDeviceFleetReport)

instance Core.AWSRequest GetDeviceFleetReport where
  type
    AWSResponse GetDeviceFleetReport =
      GetDeviceFleetReportResponse
  request :: (Service -> Service)
-> GetDeviceFleetReport -> Request GetDeviceFleetReport
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetDeviceFleetReport
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetDeviceFleetReport)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [AgentVersion]
-> Maybe Text
-> Maybe DeviceStats
-> Maybe [EdgeModelStat]
-> Maybe EdgeOutputConfig
-> Maybe POSIX
-> Int
-> Text
-> Text
-> GetDeviceFleetReportResponse
GetDeviceFleetReportResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"AgentVersions" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DeviceStats")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ModelStats" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OutputConfig")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ReportGenerated")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"DeviceFleetArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"DeviceFleetName")
      )

instance Prelude.Hashable GetDeviceFleetReport where
  hashWithSalt :: Int -> GetDeviceFleetReport -> Int
hashWithSalt Int
_salt GetDeviceFleetReport' {Text
deviceFleetName :: Text
$sel:deviceFleetName:GetDeviceFleetReport' :: GetDeviceFleetReport -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
deviceFleetName

instance Prelude.NFData GetDeviceFleetReport where
  rnf :: GetDeviceFleetReport -> ()
rnf GetDeviceFleetReport' {Text
deviceFleetName :: Text
$sel:deviceFleetName:GetDeviceFleetReport' :: GetDeviceFleetReport -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
deviceFleetName

instance Data.ToHeaders GetDeviceFleetReport where
  toHeaders :: GetDeviceFleetReport -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"SageMaker.GetDeviceFleetReport" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON GetDeviceFleetReport where
  toJSON :: GetDeviceFleetReport -> Value
toJSON GetDeviceFleetReport' {Text
deviceFleetName :: Text
$sel:deviceFleetName:GetDeviceFleetReport' :: GetDeviceFleetReport -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ forall a. a -> Maybe a
Prelude.Just
              (Key
"DeviceFleetName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
deviceFleetName)
          ]
      )

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

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

-- | /See:/ 'newGetDeviceFleetReportResponse' smart constructor.
data GetDeviceFleetReportResponse = GetDeviceFleetReportResponse'
  { -- | The versions of Edge Manager agent deployed on the fleet.
    GetDeviceFleetReportResponse -> Maybe [AgentVersion]
agentVersions :: Prelude.Maybe [AgentVersion],
    -- | Description of the fleet.
    GetDeviceFleetReportResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | Status of devices.
    GetDeviceFleetReportResponse -> Maybe DeviceStats
deviceStats :: Prelude.Maybe DeviceStats,
    -- | Status of model on device.
    GetDeviceFleetReportResponse -> Maybe [EdgeModelStat]
modelStats :: Prelude.Maybe [EdgeModelStat],
    -- | The output configuration for storing sample data collected by the fleet.
    GetDeviceFleetReportResponse -> Maybe EdgeOutputConfig
outputConfig :: Prelude.Maybe EdgeOutputConfig,
    -- | Timestamp of when the report was generated.
    GetDeviceFleetReportResponse -> Maybe POSIX
reportGenerated :: Prelude.Maybe Data.POSIX,
    -- | The response's http status code.
    GetDeviceFleetReportResponse -> Int
httpStatus :: Prelude.Int,
    -- | The Amazon Resource Name (ARN) of the device.
    GetDeviceFleetReportResponse -> Text
deviceFleetArn :: Prelude.Text,
    -- | The name of the fleet.
    GetDeviceFleetReportResponse -> Text
deviceFleetName :: Prelude.Text
  }
  deriving (GetDeviceFleetReportResponse
-> GetDeviceFleetReportResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDeviceFleetReportResponse
-> GetDeviceFleetReportResponse -> Bool
$c/= :: GetDeviceFleetReportResponse
-> GetDeviceFleetReportResponse -> Bool
== :: GetDeviceFleetReportResponse
-> GetDeviceFleetReportResponse -> Bool
$c== :: GetDeviceFleetReportResponse
-> GetDeviceFleetReportResponse -> Bool
Prelude.Eq, ReadPrec [GetDeviceFleetReportResponse]
ReadPrec GetDeviceFleetReportResponse
Int -> ReadS GetDeviceFleetReportResponse
ReadS [GetDeviceFleetReportResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDeviceFleetReportResponse]
$creadListPrec :: ReadPrec [GetDeviceFleetReportResponse]
readPrec :: ReadPrec GetDeviceFleetReportResponse
$creadPrec :: ReadPrec GetDeviceFleetReportResponse
readList :: ReadS [GetDeviceFleetReportResponse]
$creadList :: ReadS [GetDeviceFleetReportResponse]
readsPrec :: Int -> ReadS GetDeviceFleetReportResponse
$creadsPrec :: Int -> ReadS GetDeviceFleetReportResponse
Prelude.Read, Int -> GetDeviceFleetReportResponse -> ShowS
[GetDeviceFleetReportResponse] -> ShowS
GetDeviceFleetReportResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDeviceFleetReportResponse] -> ShowS
$cshowList :: [GetDeviceFleetReportResponse] -> ShowS
show :: GetDeviceFleetReportResponse -> String
$cshow :: GetDeviceFleetReportResponse -> String
showsPrec :: Int -> GetDeviceFleetReportResponse -> ShowS
$cshowsPrec :: Int -> GetDeviceFleetReportResponse -> ShowS
Prelude.Show, forall x.
Rep GetDeviceFleetReportResponse x -> GetDeviceFleetReportResponse
forall x.
GetDeviceFleetReportResponse -> Rep GetDeviceFleetReportResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDeviceFleetReportResponse x -> GetDeviceFleetReportResponse
$cfrom :: forall x.
GetDeviceFleetReportResponse -> Rep GetDeviceFleetReportResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetDeviceFleetReportResponse' 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:
--
-- 'agentVersions', 'getDeviceFleetReportResponse_agentVersions' - The versions of Edge Manager agent deployed on the fleet.
--
-- 'description', 'getDeviceFleetReportResponse_description' - Description of the fleet.
--
-- 'deviceStats', 'getDeviceFleetReportResponse_deviceStats' - Status of devices.
--
-- 'modelStats', 'getDeviceFleetReportResponse_modelStats' - Status of model on device.
--
-- 'outputConfig', 'getDeviceFleetReportResponse_outputConfig' - The output configuration for storing sample data collected by the fleet.
--
-- 'reportGenerated', 'getDeviceFleetReportResponse_reportGenerated' - Timestamp of when the report was generated.
--
-- 'httpStatus', 'getDeviceFleetReportResponse_httpStatus' - The response's http status code.
--
-- 'deviceFleetArn', 'getDeviceFleetReportResponse_deviceFleetArn' - The Amazon Resource Name (ARN) of the device.
--
-- 'deviceFleetName', 'getDeviceFleetReportResponse_deviceFleetName' - The name of the fleet.
newGetDeviceFleetReportResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'deviceFleetArn'
  Prelude.Text ->
  -- | 'deviceFleetName'
  Prelude.Text ->
  GetDeviceFleetReportResponse
newGetDeviceFleetReportResponse :: Int -> Text -> Text -> GetDeviceFleetReportResponse
newGetDeviceFleetReportResponse
  Int
pHttpStatus_
  Text
pDeviceFleetArn_
  Text
pDeviceFleetName_ =
    GetDeviceFleetReportResponse'
      { $sel:agentVersions:GetDeviceFleetReportResponse' :: Maybe [AgentVersion]
agentVersions =
          forall a. Maybe a
Prelude.Nothing,
        $sel:description:GetDeviceFleetReportResponse' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
        $sel:deviceStats:GetDeviceFleetReportResponse' :: Maybe DeviceStats
deviceStats = forall a. Maybe a
Prelude.Nothing,
        $sel:modelStats:GetDeviceFleetReportResponse' :: Maybe [EdgeModelStat]
modelStats = forall a. Maybe a
Prelude.Nothing,
        $sel:outputConfig:GetDeviceFleetReportResponse' :: Maybe EdgeOutputConfig
outputConfig = forall a. Maybe a
Prelude.Nothing,
        $sel:reportGenerated:GetDeviceFleetReportResponse' :: Maybe POSIX
reportGenerated = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetDeviceFleetReportResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:deviceFleetArn:GetDeviceFleetReportResponse' :: Text
deviceFleetArn = Text
pDeviceFleetArn_,
        $sel:deviceFleetName:GetDeviceFleetReportResponse' :: Text
deviceFleetName = Text
pDeviceFleetName_
      }

-- | The versions of Edge Manager agent deployed on the fleet.
getDeviceFleetReportResponse_agentVersions :: Lens.Lens' GetDeviceFleetReportResponse (Prelude.Maybe [AgentVersion])
getDeviceFleetReportResponse_agentVersions :: Lens' GetDeviceFleetReportResponse (Maybe [AgentVersion])
getDeviceFleetReportResponse_agentVersions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeviceFleetReportResponse' {Maybe [AgentVersion]
agentVersions :: Maybe [AgentVersion]
$sel:agentVersions:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe [AgentVersion]
agentVersions} -> Maybe [AgentVersion]
agentVersions) (\s :: GetDeviceFleetReportResponse
s@GetDeviceFleetReportResponse' {} Maybe [AgentVersion]
a -> GetDeviceFleetReportResponse
s {$sel:agentVersions:GetDeviceFleetReportResponse' :: Maybe [AgentVersion]
agentVersions = Maybe [AgentVersion]
a} :: GetDeviceFleetReportResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Description of the fleet.
getDeviceFleetReportResponse_description :: Lens.Lens' GetDeviceFleetReportResponse (Prelude.Maybe Prelude.Text)
getDeviceFleetReportResponse_description :: Lens' GetDeviceFleetReportResponse (Maybe Text)
getDeviceFleetReportResponse_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeviceFleetReportResponse' {Maybe Text
description :: Maybe Text
$sel:description:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: GetDeviceFleetReportResponse
s@GetDeviceFleetReportResponse' {} Maybe Text
a -> GetDeviceFleetReportResponse
s {$sel:description:GetDeviceFleetReportResponse' :: Maybe Text
description = Maybe Text
a} :: GetDeviceFleetReportResponse)

-- | Status of devices.
getDeviceFleetReportResponse_deviceStats :: Lens.Lens' GetDeviceFleetReportResponse (Prelude.Maybe DeviceStats)
getDeviceFleetReportResponse_deviceStats :: Lens' GetDeviceFleetReportResponse (Maybe DeviceStats)
getDeviceFleetReportResponse_deviceStats = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeviceFleetReportResponse' {Maybe DeviceStats
deviceStats :: Maybe DeviceStats
$sel:deviceStats:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe DeviceStats
deviceStats} -> Maybe DeviceStats
deviceStats) (\s :: GetDeviceFleetReportResponse
s@GetDeviceFleetReportResponse' {} Maybe DeviceStats
a -> GetDeviceFleetReportResponse
s {$sel:deviceStats:GetDeviceFleetReportResponse' :: Maybe DeviceStats
deviceStats = Maybe DeviceStats
a} :: GetDeviceFleetReportResponse)

-- | Status of model on device.
getDeviceFleetReportResponse_modelStats :: Lens.Lens' GetDeviceFleetReportResponse (Prelude.Maybe [EdgeModelStat])
getDeviceFleetReportResponse_modelStats :: Lens' GetDeviceFleetReportResponse (Maybe [EdgeModelStat])
getDeviceFleetReportResponse_modelStats = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeviceFleetReportResponse' {Maybe [EdgeModelStat]
modelStats :: Maybe [EdgeModelStat]
$sel:modelStats:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe [EdgeModelStat]
modelStats} -> Maybe [EdgeModelStat]
modelStats) (\s :: GetDeviceFleetReportResponse
s@GetDeviceFleetReportResponse' {} Maybe [EdgeModelStat]
a -> GetDeviceFleetReportResponse
s {$sel:modelStats:GetDeviceFleetReportResponse' :: Maybe [EdgeModelStat]
modelStats = Maybe [EdgeModelStat]
a} :: GetDeviceFleetReportResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The output configuration for storing sample data collected by the fleet.
getDeviceFleetReportResponse_outputConfig :: Lens.Lens' GetDeviceFleetReportResponse (Prelude.Maybe EdgeOutputConfig)
getDeviceFleetReportResponse_outputConfig :: Lens' GetDeviceFleetReportResponse (Maybe EdgeOutputConfig)
getDeviceFleetReportResponse_outputConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeviceFleetReportResponse' {Maybe EdgeOutputConfig
outputConfig :: Maybe EdgeOutputConfig
$sel:outputConfig:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe EdgeOutputConfig
outputConfig} -> Maybe EdgeOutputConfig
outputConfig) (\s :: GetDeviceFleetReportResponse
s@GetDeviceFleetReportResponse' {} Maybe EdgeOutputConfig
a -> GetDeviceFleetReportResponse
s {$sel:outputConfig:GetDeviceFleetReportResponse' :: Maybe EdgeOutputConfig
outputConfig = Maybe EdgeOutputConfig
a} :: GetDeviceFleetReportResponse)

-- | Timestamp of when the report was generated.
getDeviceFleetReportResponse_reportGenerated :: Lens.Lens' GetDeviceFleetReportResponse (Prelude.Maybe Prelude.UTCTime)
getDeviceFleetReportResponse_reportGenerated :: Lens' GetDeviceFleetReportResponse (Maybe UTCTime)
getDeviceFleetReportResponse_reportGenerated = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeviceFleetReportResponse' {Maybe POSIX
reportGenerated :: Maybe POSIX
$sel:reportGenerated:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe POSIX
reportGenerated} -> Maybe POSIX
reportGenerated) (\s :: GetDeviceFleetReportResponse
s@GetDeviceFleetReportResponse' {} Maybe POSIX
a -> GetDeviceFleetReportResponse
s {$sel:reportGenerated:GetDeviceFleetReportResponse' :: Maybe POSIX
reportGenerated = Maybe POSIX
a} :: GetDeviceFleetReportResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

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

-- | The Amazon Resource Name (ARN) of the device.
getDeviceFleetReportResponse_deviceFleetArn :: Lens.Lens' GetDeviceFleetReportResponse Prelude.Text
getDeviceFleetReportResponse_deviceFleetArn :: Lens' GetDeviceFleetReportResponse Text
getDeviceFleetReportResponse_deviceFleetArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeviceFleetReportResponse' {Text
deviceFleetArn :: Text
$sel:deviceFleetArn:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Text
deviceFleetArn} -> Text
deviceFleetArn) (\s :: GetDeviceFleetReportResponse
s@GetDeviceFleetReportResponse' {} Text
a -> GetDeviceFleetReportResponse
s {$sel:deviceFleetArn:GetDeviceFleetReportResponse' :: Text
deviceFleetArn = Text
a} :: GetDeviceFleetReportResponse)

-- | The name of the fleet.
getDeviceFleetReportResponse_deviceFleetName :: Lens.Lens' GetDeviceFleetReportResponse Prelude.Text
getDeviceFleetReportResponse_deviceFleetName :: Lens' GetDeviceFleetReportResponse Text
getDeviceFleetReportResponse_deviceFleetName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeviceFleetReportResponse' {Text
deviceFleetName :: Text
$sel:deviceFleetName:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Text
deviceFleetName} -> Text
deviceFleetName) (\s :: GetDeviceFleetReportResponse
s@GetDeviceFleetReportResponse' {} Text
a -> GetDeviceFleetReportResponse
s {$sel:deviceFleetName:GetDeviceFleetReportResponse' :: Text
deviceFleetName = Text
a} :: GetDeviceFleetReportResponse)

instance Prelude.NFData GetDeviceFleetReportResponse where
  rnf :: GetDeviceFleetReportResponse -> ()
rnf GetDeviceFleetReportResponse' {Int
Maybe [AgentVersion]
Maybe [EdgeModelStat]
Maybe Text
Maybe POSIX
Maybe DeviceStats
Maybe EdgeOutputConfig
Text
deviceFleetName :: Text
deviceFleetArn :: Text
httpStatus :: Int
reportGenerated :: Maybe POSIX
outputConfig :: Maybe EdgeOutputConfig
modelStats :: Maybe [EdgeModelStat]
deviceStats :: Maybe DeviceStats
description :: Maybe Text
agentVersions :: Maybe [AgentVersion]
$sel:deviceFleetName:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Text
$sel:deviceFleetArn:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Text
$sel:httpStatus:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Int
$sel:reportGenerated:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe POSIX
$sel:outputConfig:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe EdgeOutputConfig
$sel:modelStats:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe [EdgeModelStat]
$sel:deviceStats:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe DeviceStats
$sel:description:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe Text
$sel:agentVersions:GetDeviceFleetReportResponse' :: GetDeviceFleetReportResponse -> Maybe [AgentVersion]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [AgentVersion]
agentVersions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DeviceStats
deviceStats
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [EdgeModelStat]
modelStats
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EdgeOutputConfig
outputConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
reportGenerated
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
deviceFleetArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
deviceFleetName