{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.DeviceSummary
-- 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)
module Amazonka.SageMaker.Types.DeviceSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMaker.Types.EdgeModelSummary

-- | Summary of the device.
--
-- /See:/ 'newDeviceSummary' smart constructor.
data DeviceSummary = DeviceSummary'
  { -- | The timestamp of the last registration or de-reregistration.
    DeviceSummary -> Maybe POSIX
registrationTime :: Prelude.Maybe Core.POSIX,
    -- | Models on the device.
    DeviceSummary -> Maybe [EdgeModelSummary]
models :: Prelude.Maybe [EdgeModelSummary],
    -- | The last heartbeat received from the device.
    DeviceSummary -> Maybe POSIX
latestHeartbeat :: Prelude.Maybe Core.POSIX,
    -- | A description of the device.
    DeviceSummary -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The name of the fleet the device belongs to.
    DeviceSummary -> Maybe Text
deviceFleetName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Web Services Internet of Things (IoT) object thing name
    -- associated with the device..
    DeviceSummary -> Maybe Text
iotThingName :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier of the device.
    DeviceSummary -> Text
deviceName :: Prelude.Text,
    -- | Amazon Resource Name (ARN) of the device.
    DeviceSummary -> Text
deviceArn :: Prelude.Text
  }
  deriving (DeviceSummary -> DeviceSummary -> Bool
(DeviceSummary -> DeviceSummary -> Bool)
-> (DeviceSummary -> DeviceSummary -> Bool) -> Eq DeviceSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeviceSummary -> DeviceSummary -> Bool
$c/= :: DeviceSummary -> DeviceSummary -> Bool
== :: DeviceSummary -> DeviceSummary -> Bool
$c== :: DeviceSummary -> DeviceSummary -> Bool
Prelude.Eq, ReadPrec [DeviceSummary]
ReadPrec DeviceSummary
Int -> ReadS DeviceSummary
ReadS [DeviceSummary]
(Int -> ReadS DeviceSummary)
-> ReadS [DeviceSummary]
-> ReadPrec DeviceSummary
-> ReadPrec [DeviceSummary]
-> Read DeviceSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeviceSummary]
$creadListPrec :: ReadPrec [DeviceSummary]
readPrec :: ReadPrec DeviceSummary
$creadPrec :: ReadPrec DeviceSummary
readList :: ReadS [DeviceSummary]
$creadList :: ReadS [DeviceSummary]
readsPrec :: Int -> ReadS DeviceSummary
$creadsPrec :: Int -> ReadS DeviceSummary
Prelude.Read, Int -> DeviceSummary -> ShowS
[DeviceSummary] -> ShowS
DeviceSummary -> String
(Int -> DeviceSummary -> ShowS)
-> (DeviceSummary -> String)
-> ([DeviceSummary] -> ShowS)
-> Show DeviceSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeviceSummary] -> ShowS
$cshowList :: [DeviceSummary] -> ShowS
show :: DeviceSummary -> String
$cshow :: DeviceSummary -> String
showsPrec :: Int -> DeviceSummary -> ShowS
$cshowsPrec :: Int -> DeviceSummary -> ShowS
Prelude.Show, (forall x. DeviceSummary -> Rep DeviceSummary x)
-> (forall x. Rep DeviceSummary x -> DeviceSummary)
-> Generic DeviceSummary
forall x. Rep DeviceSummary x -> DeviceSummary
forall x. DeviceSummary -> Rep DeviceSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeviceSummary x -> DeviceSummary
$cfrom :: forall x. DeviceSummary -> Rep DeviceSummary x
Prelude.Generic)

-- |
-- Create a value of 'DeviceSummary' 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:
--
-- 'registrationTime', 'deviceSummary_registrationTime' - The timestamp of the last registration or de-reregistration.
--
-- 'models', 'deviceSummary_models' - Models on the device.
--
-- 'latestHeartbeat', 'deviceSummary_latestHeartbeat' - The last heartbeat received from the device.
--
-- 'description', 'deviceSummary_description' - A description of the device.
--
-- 'deviceFleetName', 'deviceSummary_deviceFleetName' - The name of the fleet the device belongs to.
--
-- 'iotThingName', 'deviceSummary_iotThingName' - The Amazon Web Services Internet of Things (IoT) object thing name
-- associated with the device..
--
-- 'deviceName', 'deviceSummary_deviceName' - The unique identifier of the device.
--
-- 'deviceArn', 'deviceSummary_deviceArn' - Amazon Resource Name (ARN) of the device.
newDeviceSummary ::
  -- | 'deviceName'
  Prelude.Text ->
  -- | 'deviceArn'
  Prelude.Text ->
  DeviceSummary
newDeviceSummary :: Text -> Text -> DeviceSummary
newDeviceSummary Text
pDeviceName_ Text
pDeviceArn_ =
  DeviceSummary' :: Maybe POSIX
-> Maybe [EdgeModelSummary]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> DeviceSummary
DeviceSummary'
    { $sel:registrationTime:DeviceSummary' :: Maybe POSIX
registrationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:models:DeviceSummary' :: Maybe [EdgeModelSummary]
models = Maybe [EdgeModelSummary]
forall a. Maybe a
Prelude.Nothing,
      $sel:latestHeartbeat:DeviceSummary' :: Maybe POSIX
latestHeartbeat = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:description:DeviceSummary' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deviceFleetName:DeviceSummary' :: Maybe Text
deviceFleetName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:iotThingName:DeviceSummary' :: Maybe Text
iotThingName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deviceName:DeviceSummary' :: Text
deviceName = Text
pDeviceName_,
      $sel:deviceArn:DeviceSummary' :: Text
deviceArn = Text
pDeviceArn_
    }

-- | The timestamp of the last registration or de-reregistration.
deviceSummary_registrationTime :: Lens.Lens' DeviceSummary (Prelude.Maybe Prelude.UTCTime)
deviceSummary_registrationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DeviceSummary -> f DeviceSummary
deviceSummary_registrationTime = (DeviceSummary -> Maybe POSIX)
-> (DeviceSummary -> Maybe POSIX -> DeviceSummary)
-> Lens DeviceSummary DeviceSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceSummary' {Maybe POSIX
registrationTime :: Maybe POSIX
$sel:registrationTime:DeviceSummary' :: DeviceSummary -> Maybe POSIX
registrationTime} -> Maybe POSIX
registrationTime) (\s :: DeviceSummary
s@DeviceSummary' {} Maybe POSIX
a -> DeviceSummary
s {$sel:registrationTime:DeviceSummary' :: Maybe POSIX
registrationTime = Maybe POSIX
a} :: DeviceSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> DeviceSummary -> f DeviceSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DeviceSummary
-> f DeviceSummary
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

-- | Models on the device.
deviceSummary_models :: Lens.Lens' DeviceSummary (Prelude.Maybe [EdgeModelSummary])
deviceSummary_models :: (Maybe [EdgeModelSummary] -> f (Maybe [EdgeModelSummary]))
-> DeviceSummary -> f DeviceSummary
deviceSummary_models = (DeviceSummary -> Maybe [EdgeModelSummary])
-> (DeviceSummary -> Maybe [EdgeModelSummary] -> DeviceSummary)
-> Lens
     DeviceSummary
     DeviceSummary
     (Maybe [EdgeModelSummary])
     (Maybe [EdgeModelSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceSummary' {Maybe [EdgeModelSummary]
models :: Maybe [EdgeModelSummary]
$sel:models:DeviceSummary' :: DeviceSummary -> Maybe [EdgeModelSummary]
models} -> Maybe [EdgeModelSummary]
models) (\s :: DeviceSummary
s@DeviceSummary' {} Maybe [EdgeModelSummary]
a -> DeviceSummary
s {$sel:models:DeviceSummary' :: Maybe [EdgeModelSummary]
models = Maybe [EdgeModelSummary]
a} :: DeviceSummary) ((Maybe [EdgeModelSummary] -> f (Maybe [EdgeModelSummary]))
 -> DeviceSummary -> f DeviceSummary)
-> ((Maybe [EdgeModelSummary] -> f (Maybe [EdgeModelSummary]))
    -> Maybe [EdgeModelSummary] -> f (Maybe [EdgeModelSummary]))
-> (Maybe [EdgeModelSummary] -> f (Maybe [EdgeModelSummary]))
-> DeviceSummary
-> f DeviceSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [EdgeModelSummary]
  [EdgeModelSummary]
  [EdgeModelSummary]
  [EdgeModelSummary]
-> Iso
     (Maybe [EdgeModelSummary])
     (Maybe [EdgeModelSummary])
     (Maybe [EdgeModelSummary])
     (Maybe [EdgeModelSummary])
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
  [EdgeModelSummary]
  [EdgeModelSummary]
  [EdgeModelSummary]
  [EdgeModelSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The last heartbeat received from the device.
deviceSummary_latestHeartbeat :: Lens.Lens' DeviceSummary (Prelude.Maybe Prelude.UTCTime)
deviceSummary_latestHeartbeat :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DeviceSummary -> f DeviceSummary
deviceSummary_latestHeartbeat = (DeviceSummary -> Maybe POSIX)
-> (DeviceSummary -> Maybe POSIX -> DeviceSummary)
-> Lens DeviceSummary DeviceSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceSummary' {Maybe POSIX
latestHeartbeat :: Maybe POSIX
$sel:latestHeartbeat:DeviceSummary' :: DeviceSummary -> Maybe POSIX
latestHeartbeat} -> Maybe POSIX
latestHeartbeat) (\s :: DeviceSummary
s@DeviceSummary' {} Maybe POSIX
a -> DeviceSummary
s {$sel:latestHeartbeat:DeviceSummary' :: Maybe POSIX
latestHeartbeat = Maybe POSIX
a} :: DeviceSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> DeviceSummary -> f DeviceSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DeviceSummary
-> f DeviceSummary
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

-- | A description of the device.
deviceSummary_description :: Lens.Lens' DeviceSummary (Prelude.Maybe Prelude.Text)
deviceSummary_description :: (Maybe Text -> f (Maybe Text)) -> DeviceSummary -> f DeviceSummary
deviceSummary_description = (DeviceSummary -> Maybe Text)
-> (DeviceSummary -> Maybe Text -> DeviceSummary)
-> Lens DeviceSummary DeviceSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceSummary' {Maybe Text
description :: Maybe Text
$sel:description:DeviceSummary' :: DeviceSummary -> Maybe Text
description} -> Maybe Text
description) (\s :: DeviceSummary
s@DeviceSummary' {} Maybe Text
a -> DeviceSummary
s {$sel:description:DeviceSummary' :: Maybe Text
description = Maybe Text
a} :: DeviceSummary)

-- | The name of the fleet the device belongs to.
deviceSummary_deviceFleetName :: Lens.Lens' DeviceSummary (Prelude.Maybe Prelude.Text)
deviceSummary_deviceFleetName :: (Maybe Text -> f (Maybe Text)) -> DeviceSummary -> f DeviceSummary
deviceSummary_deviceFleetName = (DeviceSummary -> Maybe Text)
-> (DeviceSummary -> Maybe Text -> DeviceSummary)
-> Lens DeviceSummary DeviceSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceSummary' {Maybe Text
deviceFleetName :: Maybe Text
$sel:deviceFleetName:DeviceSummary' :: DeviceSummary -> Maybe Text
deviceFleetName} -> Maybe Text
deviceFleetName) (\s :: DeviceSummary
s@DeviceSummary' {} Maybe Text
a -> DeviceSummary
s {$sel:deviceFleetName:DeviceSummary' :: Maybe Text
deviceFleetName = Maybe Text
a} :: DeviceSummary)

-- | The Amazon Web Services Internet of Things (IoT) object thing name
-- associated with the device..
deviceSummary_iotThingName :: Lens.Lens' DeviceSummary (Prelude.Maybe Prelude.Text)
deviceSummary_iotThingName :: (Maybe Text -> f (Maybe Text)) -> DeviceSummary -> f DeviceSummary
deviceSummary_iotThingName = (DeviceSummary -> Maybe Text)
-> (DeviceSummary -> Maybe Text -> DeviceSummary)
-> Lens DeviceSummary DeviceSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceSummary' {Maybe Text
iotThingName :: Maybe Text
$sel:iotThingName:DeviceSummary' :: DeviceSummary -> Maybe Text
iotThingName} -> Maybe Text
iotThingName) (\s :: DeviceSummary
s@DeviceSummary' {} Maybe Text
a -> DeviceSummary
s {$sel:iotThingName:DeviceSummary' :: Maybe Text
iotThingName = Maybe Text
a} :: DeviceSummary)

-- | The unique identifier of the device.
deviceSummary_deviceName :: Lens.Lens' DeviceSummary Prelude.Text
deviceSummary_deviceName :: (Text -> f Text) -> DeviceSummary -> f DeviceSummary
deviceSummary_deviceName = (DeviceSummary -> Text)
-> (DeviceSummary -> Text -> DeviceSummary)
-> Lens DeviceSummary DeviceSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceSummary' {Text
deviceName :: Text
$sel:deviceName:DeviceSummary' :: DeviceSummary -> Text
deviceName} -> Text
deviceName) (\s :: DeviceSummary
s@DeviceSummary' {} Text
a -> DeviceSummary
s {$sel:deviceName:DeviceSummary' :: Text
deviceName = Text
a} :: DeviceSummary)

-- | Amazon Resource Name (ARN) of the device.
deviceSummary_deviceArn :: Lens.Lens' DeviceSummary Prelude.Text
deviceSummary_deviceArn :: (Text -> f Text) -> DeviceSummary -> f DeviceSummary
deviceSummary_deviceArn = (DeviceSummary -> Text)
-> (DeviceSummary -> Text -> DeviceSummary)
-> Lens DeviceSummary DeviceSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeviceSummary' {Text
deviceArn :: Text
$sel:deviceArn:DeviceSummary' :: DeviceSummary -> Text
deviceArn} -> Text
deviceArn) (\s :: DeviceSummary
s@DeviceSummary' {} Text
a -> DeviceSummary
s {$sel:deviceArn:DeviceSummary' :: Text
deviceArn = Text
a} :: DeviceSummary)

instance Core.FromJSON DeviceSummary where
  parseJSON :: Value -> Parser DeviceSummary
parseJSON =
    String
-> (Object -> Parser DeviceSummary)
-> Value
-> Parser DeviceSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DeviceSummary"
      ( \Object
x ->
          Maybe POSIX
-> Maybe [EdgeModelSummary]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Text
-> Text
-> DeviceSummary
DeviceSummary'
            (Maybe POSIX
 -> Maybe [EdgeModelSummary]
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Text
 -> Text
 -> DeviceSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe [EdgeModelSummary]
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> Text
      -> DeviceSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RegistrationTime")
            Parser
  (Maybe [EdgeModelSummary]
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Text
   -> Text
   -> DeviceSummary)
-> Parser (Maybe [EdgeModelSummary])
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Text
      -> Text
      -> DeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [EdgeModelSummary]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Models" Parser (Maybe (Maybe [EdgeModelSummary]))
-> Maybe [EdgeModelSummary] -> Parser (Maybe [EdgeModelSummary])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [EdgeModelSummary]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Text
   -> Text
   -> DeviceSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe Text -> Text -> Text -> DeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LatestHeartbeat")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe Text -> Text -> Text -> DeviceSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe Text -> Text -> Text -> DeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Description")
            Parser (Maybe Text -> Maybe Text -> Text -> Text -> DeviceSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Text -> Text -> DeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeviceFleetName")
            Parser (Maybe Text -> Text -> Text -> DeviceSummary)
-> Parser (Maybe Text) -> Parser (Text -> Text -> DeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IotThingName")
            Parser (Text -> Text -> DeviceSummary)
-> Parser Text -> Parser (Text -> DeviceSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"DeviceName")
            Parser (Text -> DeviceSummary)
-> Parser Text -> Parser DeviceSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"DeviceArn")
      )

instance Prelude.Hashable DeviceSummary

instance Prelude.NFData DeviceSummary