{-# 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 #-}
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
data SystemInstanceSummary = SystemInstanceSummary'
{
SystemInstanceSummary -> Maybe SystemInstanceDeploymentStatus
status :: Prelude.Maybe SystemInstanceDeploymentStatus,
SystemInstanceSummary -> Maybe Text
greengrassGroupName :: Prelude.Maybe Prelude.Text,
SystemInstanceSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
SystemInstanceSummary -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
SystemInstanceSummary -> Maybe Text
greengrassGroupId :: Prelude.Maybe Prelude.Text,
SystemInstanceSummary -> Maybe Text
greengrassGroupVersionId :: Prelude.Maybe Prelude.Text,
SystemInstanceSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
SystemInstanceSummary -> Maybe POSIX
updatedAt :: Prelude.Maybe Core.POSIX,
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)
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
}
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)
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)
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)
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
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)
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)
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)
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
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