{-# 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.IoTThingsGraph.Types.SystemInstanceSummary
-- 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.IoTThingsGraph.Types.SystemInstanceSummary where

import qualified Amazonka.Core as Core
import Amazonka.IoTThingsGraph.Types.DeploymentTarget
import Amazonka.IoTThingsGraph.Types.SystemInstanceDeploymentStatus
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | An object that contains summary information about a system instance.
--
-- /See:/ 'newSystemInstanceSummary' smart constructor.
data SystemInstanceSummary = SystemInstanceSummary'
  { -- | The status of the system instance.
    SystemInstanceSummary -> Maybe SystemInstanceDeploymentStatus
status :: Prelude.Maybe SystemInstanceDeploymentStatus,
    -- | The ID of the Greengrass group where the system instance is deployed.
    SystemInstanceSummary -> Maybe Text
greengrassGroupName :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the system instance.
    SystemInstanceSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The date when the system instance was created.
    SystemInstanceSummary -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The ID of the Greengrass group where the system instance is deployed.
    SystemInstanceSummary -> Maybe Text
greengrassGroupId :: Prelude.Maybe Prelude.Text,
    -- | The version of the Greengrass group where the system instance is
    -- deployed.
    SystemInstanceSummary -> Maybe Text
greengrassGroupVersionId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the system instance.
    SystemInstanceSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The date and time when the system instance was last updated.
    SystemInstanceSummary -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX,
    -- | The target of the system instance.
    SystemInstanceSummary -> Maybe DeploymentTarget
target :: Prelude.Maybe DeploymentTarget
  }
  deriving (SystemInstanceSummary -> SystemInstanceSummary -> Bool
(SystemInstanceSummary -> SystemInstanceSummary -> Bool)
-> (SystemInstanceSummary -> SystemInstanceSummary -> Bool)
-> Eq SystemInstanceSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SystemInstanceSummary -> SystemInstanceSummary -> Bool
$c/= :: SystemInstanceSummary -> SystemInstanceSummary -> Bool
== :: SystemInstanceSummary -> SystemInstanceSummary -> Bool
$c== :: SystemInstanceSummary -> SystemInstanceSummary -> Bool
Prelude.Eq, ReadPrec [SystemInstanceSummary]
ReadPrec SystemInstanceSummary
Int -> ReadS SystemInstanceSummary
ReadS [SystemInstanceSummary]
(Int -> ReadS SystemInstanceSummary)
-> ReadS [SystemInstanceSummary]
-> ReadPrec SystemInstanceSummary
-> ReadPrec [SystemInstanceSummary]
-> Read SystemInstanceSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SystemInstanceSummary]
$creadListPrec :: ReadPrec [SystemInstanceSummary]
readPrec :: ReadPrec SystemInstanceSummary
$creadPrec :: ReadPrec SystemInstanceSummary
readList :: ReadS [SystemInstanceSummary]
$creadList :: ReadS [SystemInstanceSummary]
readsPrec :: Int -> ReadS SystemInstanceSummary
$creadsPrec :: Int -> ReadS SystemInstanceSummary
Prelude.Read, Int -> SystemInstanceSummary -> ShowS
[SystemInstanceSummary] -> ShowS
SystemInstanceSummary -> String
(Int -> SystemInstanceSummary -> ShowS)
-> (SystemInstanceSummary -> String)
-> ([SystemInstanceSummary] -> ShowS)
-> Show SystemInstanceSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SystemInstanceSummary] -> ShowS
$cshowList :: [SystemInstanceSummary] -> ShowS
show :: SystemInstanceSummary -> String
$cshow :: SystemInstanceSummary -> String
showsPrec :: Int -> SystemInstanceSummary -> ShowS
$cshowsPrec :: Int -> SystemInstanceSummary -> ShowS
Prelude.Show, (forall x. SystemInstanceSummary -> Rep SystemInstanceSummary x)
-> (forall x. Rep SystemInstanceSummary x -> SystemInstanceSummary)
-> Generic SystemInstanceSummary
forall x. Rep SystemInstanceSummary x -> SystemInstanceSummary
forall x. SystemInstanceSummary -> Rep SystemInstanceSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SystemInstanceSummary x -> SystemInstanceSummary
$cfrom :: forall x. SystemInstanceSummary -> Rep SystemInstanceSummary x
Prelude.Generic)

-- |
-- Create a value of 'SystemInstanceSummary' 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:
--
-- 'status', 'systemInstanceSummary_status' - The status of the system instance.
--
-- 'greengrassGroupName', 'systemInstanceSummary_greengrassGroupName' - The ID of the Greengrass group where the system instance is deployed.
--
-- 'arn', 'systemInstanceSummary_arn' - The ARN of the system instance.
--
-- 'createdAt', 'systemInstanceSummary_createdAt' - The date when the system instance was created.
--
-- 'greengrassGroupId', 'systemInstanceSummary_greengrassGroupId' - The ID of the Greengrass group where the system instance is deployed.
--
-- 'greengrassGroupVersionId', 'systemInstanceSummary_greengrassGroupVersionId' - The version of the Greengrass group where the system instance is
-- deployed.
--
-- 'id', 'systemInstanceSummary_id' - The ID of the system instance.
--
-- 'updatedAt', 'systemInstanceSummary_updatedAt' - The date and time when the system instance was last updated.
--
-- 'target', 'systemInstanceSummary_target' - The target of the system instance.
newSystemInstanceSummary ::
  SystemInstanceSummary
newSystemInstanceSummary :: SystemInstanceSummary
newSystemInstanceSummary =
  SystemInstanceSummary' :: Maybe SystemInstanceDeploymentStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe DeploymentTarget
-> SystemInstanceSummary
SystemInstanceSummary'
    { $sel:status:SystemInstanceSummary' :: Maybe SystemInstanceDeploymentStatus
status = Maybe SystemInstanceDeploymentStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:greengrassGroupName:SystemInstanceSummary' :: Maybe Text
greengrassGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:SystemInstanceSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:SystemInstanceSummary' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:greengrassGroupId:SystemInstanceSummary' :: Maybe Text
greengrassGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:greengrassGroupVersionId:SystemInstanceSummary' :: Maybe Text
greengrassGroupVersionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:SystemInstanceSummary' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:updatedAt:SystemInstanceSummary' :: Maybe POSIX
updatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:target:SystemInstanceSummary' :: Maybe DeploymentTarget
target = Maybe DeploymentTarget
forall a. Maybe a
Prelude.Nothing
    }

-- | The status of the system instance.
systemInstanceSummary_status :: Lens.Lens' SystemInstanceSummary (Prelude.Maybe SystemInstanceDeploymentStatus)
systemInstanceSummary_status :: (Maybe SystemInstanceDeploymentStatus
 -> f (Maybe SystemInstanceDeploymentStatus))
-> SystemInstanceSummary -> f SystemInstanceSummary
systemInstanceSummary_status = (SystemInstanceSummary -> Maybe SystemInstanceDeploymentStatus)
-> (SystemInstanceSummary
    -> Maybe SystemInstanceDeploymentStatus -> SystemInstanceSummary)
-> Lens
     SystemInstanceSummary
     SystemInstanceSummary
     (Maybe SystemInstanceDeploymentStatus)
     (Maybe SystemInstanceDeploymentStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SystemInstanceSummary' {Maybe SystemInstanceDeploymentStatus
status :: Maybe SystemInstanceDeploymentStatus
$sel:status:SystemInstanceSummary' :: SystemInstanceSummary -> Maybe SystemInstanceDeploymentStatus
status} -> Maybe SystemInstanceDeploymentStatus
status) (\s :: SystemInstanceSummary
s@SystemInstanceSummary' {} Maybe SystemInstanceDeploymentStatus
a -> SystemInstanceSummary
s {$sel:status:SystemInstanceSummary' :: Maybe SystemInstanceDeploymentStatus
status = Maybe SystemInstanceDeploymentStatus
a} :: SystemInstanceSummary)

-- | The ID of the Greengrass group where the system instance is deployed.
systemInstanceSummary_greengrassGroupName :: Lens.Lens' SystemInstanceSummary (Prelude.Maybe Prelude.Text)
systemInstanceSummary_greengrassGroupName :: (Maybe Text -> f (Maybe Text))
-> SystemInstanceSummary -> f SystemInstanceSummary
systemInstanceSummary_greengrassGroupName = (SystemInstanceSummary -> Maybe Text)
-> (SystemInstanceSummary -> Maybe Text -> SystemInstanceSummary)
-> Lens
     SystemInstanceSummary
     SystemInstanceSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SystemInstanceSummary' {Maybe Text
greengrassGroupName :: Maybe Text
$sel:greengrassGroupName:SystemInstanceSummary' :: SystemInstanceSummary -> Maybe Text
greengrassGroupName} -> Maybe Text
greengrassGroupName) (\s :: SystemInstanceSummary
s@SystemInstanceSummary' {} Maybe Text
a -> SystemInstanceSummary
s {$sel:greengrassGroupName:SystemInstanceSummary' :: Maybe Text
greengrassGroupName = Maybe Text
a} :: SystemInstanceSummary)

-- | The ARN of the system instance.
systemInstanceSummary_arn :: Lens.Lens' SystemInstanceSummary (Prelude.Maybe Prelude.Text)
systemInstanceSummary_arn :: (Maybe Text -> f (Maybe Text))
-> SystemInstanceSummary -> f SystemInstanceSummary
systemInstanceSummary_arn = (SystemInstanceSummary -> Maybe Text)
-> (SystemInstanceSummary -> Maybe Text -> SystemInstanceSummary)
-> Lens
     SystemInstanceSummary
     SystemInstanceSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SystemInstanceSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:SystemInstanceSummary' :: SystemInstanceSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: SystemInstanceSummary
s@SystemInstanceSummary' {} Maybe Text
a -> SystemInstanceSummary
s {$sel:arn:SystemInstanceSummary' :: Maybe Text
arn = Maybe Text
a} :: SystemInstanceSummary)

-- | The date when the system instance was created.
systemInstanceSummary_createdAt :: Lens.Lens' SystemInstanceSummary (Prelude.Maybe Prelude.UTCTime)
systemInstanceSummary_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> SystemInstanceSummary -> f SystemInstanceSummary
systemInstanceSummary_createdAt = (SystemInstanceSummary -> Maybe POSIX)
-> (SystemInstanceSummary -> Maybe POSIX -> SystemInstanceSummary)
-> Lens
     SystemInstanceSummary
     SystemInstanceSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SystemInstanceSummary' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:SystemInstanceSummary' :: SystemInstanceSummary -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: SystemInstanceSummary
s@SystemInstanceSummary' {} Maybe POSIX
a -> SystemInstanceSummary
s {$sel:createdAt:SystemInstanceSummary' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: SystemInstanceSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> SystemInstanceSummary -> f SystemInstanceSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> SystemInstanceSummary
-> f SystemInstanceSummary
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 ID of the Greengrass group where the system instance is deployed.
systemInstanceSummary_greengrassGroupId :: Lens.Lens' SystemInstanceSummary (Prelude.Maybe Prelude.Text)
systemInstanceSummary_greengrassGroupId :: (Maybe Text -> f (Maybe Text))
-> SystemInstanceSummary -> f SystemInstanceSummary
systemInstanceSummary_greengrassGroupId = (SystemInstanceSummary -> Maybe Text)
-> (SystemInstanceSummary -> Maybe Text -> SystemInstanceSummary)
-> Lens
     SystemInstanceSummary
     SystemInstanceSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SystemInstanceSummary' {Maybe Text
greengrassGroupId :: Maybe Text
$sel:greengrassGroupId:SystemInstanceSummary' :: SystemInstanceSummary -> Maybe Text
greengrassGroupId} -> Maybe Text
greengrassGroupId) (\s :: SystemInstanceSummary
s@SystemInstanceSummary' {} Maybe Text
a -> SystemInstanceSummary
s {$sel:greengrassGroupId:SystemInstanceSummary' :: Maybe Text
greengrassGroupId = Maybe Text
a} :: SystemInstanceSummary)

-- | The version of the Greengrass group where the system instance is
-- deployed.
systemInstanceSummary_greengrassGroupVersionId :: Lens.Lens' SystemInstanceSummary (Prelude.Maybe Prelude.Text)
systemInstanceSummary_greengrassGroupVersionId :: (Maybe Text -> f (Maybe Text))
-> SystemInstanceSummary -> f SystemInstanceSummary
systemInstanceSummary_greengrassGroupVersionId = (SystemInstanceSummary -> Maybe Text)
-> (SystemInstanceSummary -> Maybe Text -> SystemInstanceSummary)
-> Lens
     SystemInstanceSummary
     SystemInstanceSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SystemInstanceSummary' {Maybe Text
greengrassGroupVersionId :: Maybe Text
$sel:greengrassGroupVersionId:SystemInstanceSummary' :: SystemInstanceSummary -> Maybe Text
greengrassGroupVersionId} -> Maybe Text
greengrassGroupVersionId) (\s :: SystemInstanceSummary
s@SystemInstanceSummary' {} Maybe Text
a -> SystemInstanceSummary
s {$sel:greengrassGroupVersionId:SystemInstanceSummary' :: Maybe Text
greengrassGroupVersionId = Maybe Text
a} :: SystemInstanceSummary)

-- | The ID of the system instance.
systemInstanceSummary_id :: Lens.Lens' SystemInstanceSummary (Prelude.Maybe Prelude.Text)
systemInstanceSummary_id :: (Maybe Text -> f (Maybe Text))
-> SystemInstanceSummary -> f SystemInstanceSummary
systemInstanceSummary_id = (SystemInstanceSummary -> Maybe Text)
-> (SystemInstanceSummary -> Maybe Text -> SystemInstanceSummary)
-> Lens
     SystemInstanceSummary
     SystemInstanceSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SystemInstanceSummary' {Maybe Text
id :: Maybe Text
$sel:id:SystemInstanceSummary' :: SystemInstanceSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: SystemInstanceSummary
s@SystemInstanceSummary' {} Maybe Text
a -> SystemInstanceSummary
s {$sel:id:SystemInstanceSummary' :: Maybe Text
id = Maybe Text
a} :: SystemInstanceSummary)

-- | The date and time when the system instance was last updated.
systemInstanceSummary_updatedAt :: Lens.Lens' SystemInstanceSummary (Prelude.Maybe Prelude.UTCTime)
systemInstanceSummary_updatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> SystemInstanceSummary -> f SystemInstanceSummary
systemInstanceSummary_updatedAt = (SystemInstanceSummary -> Maybe POSIX)
-> (SystemInstanceSummary -> Maybe POSIX -> SystemInstanceSummary)
-> Lens
     SystemInstanceSummary
     SystemInstanceSummary
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SystemInstanceSummary' {Maybe POSIX
updatedAt :: Maybe POSIX
$sel:updatedAt:SystemInstanceSummary' :: SystemInstanceSummary -> Maybe POSIX
updatedAt} -> Maybe POSIX
updatedAt) (\s :: SystemInstanceSummary
s@SystemInstanceSummary' {} Maybe POSIX
a -> SystemInstanceSummary
s {$sel:updatedAt:SystemInstanceSummary' :: Maybe POSIX
updatedAt = Maybe POSIX
a} :: SystemInstanceSummary) ((Maybe POSIX -> f (Maybe POSIX))
 -> SystemInstanceSummary -> f SystemInstanceSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> SystemInstanceSummary
-> f SystemInstanceSummary
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 target of the system instance.
systemInstanceSummary_target :: Lens.Lens' SystemInstanceSummary (Prelude.Maybe DeploymentTarget)
systemInstanceSummary_target :: (Maybe DeploymentTarget -> f (Maybe DeploymentTarget))
-> SystemInstanceSummary -> f SystemInstanceSummary
systemInstanceSummary_target = (SystemInstanceSummary -> Maybe DeploymentTarget)
-> (SystemInstanceSummary
    -> Maybe DeploymentTarget -> SystemInstanceSummary)
-> Lens
     SystemInstanceSummary
     SystemInstanceSummary
     (Maybe DeploymentTarget)
     (Maybe DeploymentTarget)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\SystemInstanceSummary' {Maybe DeploymentTarget
target :: Maybe DeploymentTarget
$sel:target:SystemInstanceSummary' :: SystemInstanceSummary -> Maybe DeploymentTarget
target} -> Maybe DeploymentTarget
target) (\s :: SystemInstanceSummary
s@SystemInstanceSummary' {} Maybe DeploymentTarget
a -> SystemInstanceSummary
s {$sel:target:SystemInstanceSummary' :: Maybe DeploymentTarget
target = Maybe DeploymentTarget
a} :: SystemInstanceSummary)

instance Core.FromJSON SystemInstanceSummary where
  parseJSON :: Value -> Parser SystemInstanceSummary
parseJSON =
    String
-> (Object -> Parser SystemInstanceSummary)
-> Value
-> Parser SystemInstanceSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"SystemInstanceSummary"
      ( \Object
x ->
          Maybe SystemInstanceDeploymentStatus
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe DeploymentTarget
-> SystemInstanceSummary
SystemInstanceSummary'
            (Maybe SystemInstanceDeploymentStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe DeploymentTarget
 -> SystemInstanceSummary)
-> Parser (Maybe SystemInstanceDeploymentStatus)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe DeploymentTarget
      -> SystemInstanceSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe SystemInstanceDeploymentStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe DeploymentTarget
   -> SystemInstanceSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe DeploymentTarget
      -> SystemInstanceSummary)
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
"greengrassGroupName")
            Parser
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe DeploymentTarget
   -> SystemInstanceSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe DeploymentTarget
      -> SystemInstanceSummary)
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
"arn")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe DeploymentTarget
   -> SystemInstanceSummary)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe DeploymentTarget
      -> SystemInstanceSummary)
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
"createdAt")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe DeploymentTarget
   -> SystemInstanceSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe DeploymentTarget
      -> SystemInstanceSummary)
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
"greengrassGroupId")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe DeploymentTarget
   -> SystemInstanceSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe POSIX -> Maybe DeploymentTarget -> SystemInstanceSummary)
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
"greengrassGroupVersionId")
            Parser
  (Maybe Text
   -> Maybe POSIX -> Maybe DeploymentTarget -> SystemInstanceSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX -> Maybe DeploymentTarget -> SystemInstanceSummary)
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
"id")
            Parser
  (Maybe POSIX -> Maybe DeploymentTarget -> SystemInstanceSummary)
-> Parser (Maybe POSIX)
-> Parser (Maybe DeploymentTarget -> SystemInstanceSummary)
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
"updatedAt")
            Parser (Maybe DeploymentTarget -> SystemInstanceSummary)
-> Parser (Maybe DeploymentTarget) -> Parser SystemInstanceSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DeploymentTarget)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"target")
      )

instance Prelude.Hashable SystemInstanceSummary

instance Prelude.NFData SystemInstanceSummary