{-# 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.IoT.Types.JobExecution where
import qualified Amazonka.Core as Core
import Amazonka.IoT.Types.JobExecutionStatus
import Amazonka.IoT.Types.JobExecutionStatusDetails
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data JobExecution = JobExecution'
{
JobExecution -> Maybe JobExecutionStatus
status :: Prelude.Maybe JobExecutionStatus,
JobExecution -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
JobExecution -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
JobExecution -> Maybe Integer
approximateSecondsBeforeTimedOut :: Prelude.Maybe Prelude.Integer,
JobExecution -> Maybe POSIX
queuedAt :: Prelude.Maybe Core.POSIX,
JobExecution -> Maybe JobExecutionStatusDetails
statusDetails :: Prelude.Maybe JobExecutionStatusDetails,
JobExecution -> Maybe Text
thingArn :: Prelude.Maybe Prelude.Text,
JobExecution -> Maybe Integer
executionNumber :: Prelude.Maybe Prelude.Integer,
JobExecution -> Maybe Integer
versionNumber :: Prelude.Maybe Prelude.Integer,
JobExecution -> Maybe POSIX
startedAt :: Prelude.Maybe Core.POSIX,
JobExecution -> Maybe Bool
forceCanceled :: Prelude.Maybe Prelude.Bool
}
deriving (JobExecution -> JobExecution -> Bool
(JobExecution -> JobExecution -> Bool)
-> (JobExecution -> JobExecution -> Bool) -> Eq JobExecution
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JobExecution -> JobExecution -> Bool
$c/= :: JobExecution -> JobExecution -> Bool
== :: JobExecution -> JobExecution -> Bool
$c== :: JobExecution -> JobExecution -> Bool
Prelude.Eq, ReadPrec [JobExecution]
ReadPrec JobExecution
Int -> ReadS JobExecution
ReadS [JobExecution]
(Int -> ReadS JobExecution)
-> ReadS [JobExecution]
-> ReadPrec JobExecution
-> ReadPrec [JobExecution]
-> Read JobExecution
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JobExecution]
$creadListPrec :: ReadPrec [JobExecution]
readPrec :: ReadPrec JobExecution
$creadPrec :: ReadPrec JobExecution
readList :: ReadS [JobExecution]
$creadList :: ReadS [JobExecution]
readsPrec :: Int -> ReadS JobExecution
$creadsPrec :: Int -> ReadS JobExecution
Prelude.Read, Int -> JobExecution -> ShowS
[JobExecution] -> ShowS
JobExecution -> String
(Int -> JobExecution -> ShowS)
-> (JobExecution -> String)
-> ([JobExecution] -> ShowS)
-> Show JobExecution
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JobExecution] -> ShowS
$cshowList :: [JobExecution] -> ShowS
show :: JobExecution -> String
$cshow :: JobExecution -> String
showsPrec :: Int -> JobExecution -> ShowS
$cshowsPrec :: Int -> JobExecution -> ShowS
Prelude.Show, (forall x. JobExecution -> Rep JobExecution x)
-> (forall x. Rep JobExecution x -> JobExecution)
-> Generic JobExecution
forall x. Rep JobExecution x -> JobExecution
forall x. JobExecution -> Rep JobExecution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JobExecution x -> JobExecution
$cfrom :: forall x. JobExecution -> Rep JobExecution x
Prelude.Generic)
newJobExecution ::
JobExecution
newJobExecution :: JobExecution
newJobExecution =
JobExecution' :: Maybe JobExecutionStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Integer
-> Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution
JobExecution'
{ $sel:status:JobExecution' :: Maybe JobExecutionStatus
status = Maybe JobExecutionStatus
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:JobExecution' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdatedAt:JobExecution' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:approximateSecondsBeforeTimedOut:JobExecution' :: Maybe Integer
approximateSecondsBeforeTimedOut = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:queuedAt:JobExecution' :: Maybe POSIX
queuedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:statusDetails:JobExecution' :: Maybe JobExecutionStatusDetails
statusDetails = Maybe JobExecutionStatusDetails
forall a. Maybe a
Prelude.Nothing,
$sel:thingArn:JobExecution' :: Maybe Text
thingArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionNumber:JobExecution' :: Maybe Integer
executionNumber = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:versionNumber:JobExecution' :: Maybe Integer
versionNumber = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:startedAt:JobExecution' :: Maybe POSIX
startedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:forceCanceled:JobExecution' :: Maybe Bool
forceCanceled = Maybe Bool
forall a. Maybe a
Prelude.Nothing
}
jobExecution_status :: Lens.Lens' JobExecution (Prelude.Maybe JobExecutionStatus)
jobExecution_status :: (Maybe JobExecutionStatus -> f (Maybe JobExecutionStatus))
-> JobExecution -> f JobExecution
jobExecution_status = (JobExecution -> Maybe JobExecutionStatus)
-> (JobExecution -> Maybe JobExecutionStatus -> JobExecution)
-> Lens
JobExecution
JobExecution
(Maybe JobExecutionStatus)
(Maybe JobExecutionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe JobExecutionStatus
status :: Maybe JobExecutionStatus
$sel:status:JobExecution' :: JobExecution -> Maybe JobExecutionStatus
status} -> Maybe JobExecutionStatus
status) (\s :: JobExecution
s@JobExecution' {} Maybe JobExecutionStatus
a -> JobExecution
s {$sel:status:JobExecution' :: Maybe JobExecutionStatus
status = Maybe JobExecutionStatus
a} :: JobExecution)
jobExecution_jobId :: Lens.Lens' JobExecution (Prelude.Maybe Prelude.Text)
jobExecution_jobId :: (Maybe Text -> f (Maybe Text)) -> JobExecution -> f JobExecution
jobExecution_jobId = (JobExecution -> Maybe Text)
-> (JobExecution -> Maybe Text -> JobExecution)
-> Lens JobExecution JobExecution (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe Text
jobId :: Maybe Text
$sel:jobId:JobExecution' :: JobExecution -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: JobExecution
s@JobExecution' {} Maybe Text
a -> JobExecution
s {$sel:jobId:JobExecution' :: Maybe Text
jobId = Maybe Text
a} :: JobExecution)
jobExecution_lastUpdatedAt :: Lens.Lens' JobExecution (Prelude.Maybe Prelude.UTCTime)
jobExecution_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> JobExecution -> f JobExecution
jobExecution_lastUpdatedAt = (JobExecution -> Maybe POSIX)
-> (JobExecution -> Maybe POSIX -> JobExecution)
-> Lens JobExecution JobExecution (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:JobExecution' :: JobExecution -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: JobExecution
s@JobExecution' {} Maybe POSIX
a -> JobExecution
s {$sel:lastUpdatedAt:JobExecution' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: JobExecution) ((Maybe POSIX -> f (Maybe POSIX))
-> JobExecution -> f JobExecution)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> JobExecution
-> f JobExecution
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
jobExecution_approximateSecondsBeforeTimedOut :: Lens.Lens' JobExecution (Prelude.Maybe Prelude.Integer)
jobExecution_approximateSecondsBeforeTimedOut :: (Maybe Integer -> f (Maybe Integer))
-> JobExecution -> f JobExecution
jobExecution_approximateSecondsBeforeTimedOut = (JobExecution -> Maybe Integer)
-> (JobExecution -> Maybe Integer -> JobExecution)
-> Lens JobExecution JobExecution (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe Integer
approximateSecondsBeforeTimedOut :: Maybe Integer
$sel:approximateSecondsBeforeTimedOut:JobExecution' :: JobExecution -> Maybe Integer
approximateSecondsBeforeTimedOut} -> Maybe Integer
approximateSecondsBeforeTimedOut) (\s :: JobExecution
s@JobExecution' {} Maybe Integer
a -> JobExecution
s {$sel:approximateSecondsBeforeTimedOut:JobExecution' :: Maybe Integer
approximateSecondsBeforeTimedOut = Maybe Integer
a} :: JobExecution)
jobExecution_queuedAt :: Lens.Lens' JobExecution (Prelude.Maybe Prelude.UTCTime)
jobExecution_queuedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> JobExecution -> f JobExecution
jobExecution_queuedAt = (JobExecution -> Maybe POSIX)
-> (JobExecution -> Maybe POSIX -> JobExecution)
-> Lens JobExecution JobExecution (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe POSIX
queuedAt :: Maybe POSIX
$sel:queuedAt:JobExecution' :: JobExecution -> Maybe POSIX
queuedAt} -> Maybe POSIX
queuedAt) (\s :: JobExecution
s@JobExecution' {} Maybe POSIX
a -> JobExecution
s {$sel:queuedAt:JobExecution' :: Maybe POSIX
queuedAt = Maybe POSIX
a} :: JobExecution) ((Maybe POSIX -> f (Maybe POSIX))
-> JobExecution -> f JobExecution)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> JobExecution
-> f JobExecution
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
jobExecution_statusDetails :: Lens.Lens' JobExecution (Prelude.Maybe JobExecutionStatusDetails)
jobExecution_statusDetails :: (Maybe JobExecutionStatusDetails
-> f (Maybe JobExecutionStatusDetails))
-> JobExecution -> f JobExecution
jobExecution_statusDetails = (JobExecution -> Maybe JobExecutionStatusDetails)
-> (JobExecution
-> Maybe JobExecutionStatusDetails -> JobExecution)
-> Lens
JobExecution
JobExecution
(Maybe JobExecutionStatusDetails)
(Maybe JobExecutionStatusDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe JobExecutionStatusDetails
statusDetails :: Maybe JobExecutionStatusDetails
$sel:statusDetails:JobExecution' :: JobExecution -> Maybe JobExecutionStatusDetails
statusDetails} -> Maybe JobExecutionStatusDetails
statusDetails) (\s :: JobExecution
s@JobExecution' {} Maybe JobExecutionStatusDetails
a -> JobExecution
s {$sel:statusDetails:JobExecution' :: Maybe JobExecutionStatusDetails
statusDetails = Maybe JobExecutionStatusDetails
a} :: JobExecution)
jobExecution_thingArn :: Lens.Lens' JobExecution (Prelude.Maybe Prelude.Text)
jobExecution_thingArn :: (Maybe Text -> f (Maybe Text)) -> JobExecution -> f JobExecution
jobExecution_thingArn = (JobExecution -> Maybe Text)
-> (JobExecution -> Maybe Text -> JobExecution)
-> Lens JobExecution JobExecution (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe Text
thingArn :: Maybe Text
$sel:thingArn:JobExecution' :: JobExecution -> Maybe Text
thingArn} -> Maybe Text
thingArn) (\s :: JobExecution
s@JobExecution' {} Maybe Text
a -> JobExecution
s {$sel:thingArn:JobExecution' :: Maybe Text
thingArn = Maybe Text
a} :: JobExecution)
jobExecution_executionNumber :: Lens.Lens' JobExecution (Prelude.Maybe Prelude.Integer)
jobExecution_executionNumber :: (Maybe Integer -> f (Maybe Integer))
-> JobExecution -> f JobExecution
jobExecution_executionNumber = (JobExecution -> Maybe Integer)
-> (JobExecution -> Maybe Integer -> JobExecution)
-> Lens JobExecution JobExecution (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe Integer
executionNumber :: Maybe Integer
$sel:executionNumber:JobExecution' :: JobExecution -> Maybe Integer
executionNumber} -> Maybe Integer
executionNumber) (\s :: JobExecution
s@JobExecution' {} Maybe Integer
a -> JobExecution
s {$sel:executionNumber:JobExecution' :: Maybe Integer
executionNumber = Maybe Integer
a} :: JobExecution)
jobExecution_versionNumber :: Lens.Lens' JobExecution (Prelude.Maybe Prelude.Integer)
jobExecution_versionNumber :: (Maybe Integer -> f (Maybe Integer))
-> JobExecution -> f JobExecution
jobExecution_versionNumber = (JobExecution -> Maybe Integer)
-> (JobExecution -> Maybe Integer -> JobExecution)
-> Lens JobExecution JobExecution (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe Integer
versionNumber :: Maybe Integer
$sel:versionNumber:JobExecution' :: JobExecution -> Maybe Integer
versionNumber} -> Maybe Integer
versionNumber) (\s :: JobExecution
s@JobExecution' {} Maybe Integer
a -> JobExecution
s {$sel:versionNumber:JobExecution' :: Maybe Integer
versionNumber = Maybe Integer
a} :: JobExecution)
jobExecution_startedAt :: Lens.Lens' JobExecution (Prelude.Maybe Prelude.UTCTime)
jobExecution_startedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> JobExecution -> f JobExecution
jobExecution_startedAt = (JobExecution -> Maybe POSIX)
-> (JobExecution -> Maybe POSIX -> JobExecution)
-> Lens JobExecution JobExecution (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe POSIX
startedAt :: Maybe POSIX
$sel:startedAt:JobExecution' :: JobExecution -> Maybe POSIX
startedAt} -> Maybe POSIX
startedAt) (\s :: JobExecution
s@JobExecution' {} Maybe POSIX
a -> JobExecution
s {$sel:startedAt:JobExecution' :: Maybe POSIX
startedAt = Maybe POSIX
a} :: JobExecution) ((Maybe POSIX -> f (Maybe POSIX))
-> JobExecution -> f JobExecution)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> JobExecution
-> f JobExecution
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
jobExecution_forceCanceled :: Lens.Lens' JobExecution (Prelude.Maybe Prelude.Bool)
jobExecution_forceCanceled :: (Maybe Bool -> f (Maybe Bool)) -> JobExecution -> f JobExecution
jobExecution_forceCanceled = (JobExecution -> Maybe Bool)
-> (JobExecution -> Maybe Bool -> JobExecution)
-> Lens JobExecution JobExecution (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobExecution' {Maybe Bool
forceCanceled :: Maybe Bool
$sel:forceCanceled:JobExecution' :: JobExecution -> Maybe Bool
forceCanceled} -> Maybe Bool
forceCanceled) (\s :: JobExecution
s@JobExecution' {} Maybe Bool
a -> JobExecution
s {$sel:forceCanceled:JobExecution' :: Maybe Bool
forceCanceled = Maybe Bool
a} :: JobExecution)
instance Core.FromJSON JobExecution where
parseJSON :: Value -> Parser JobExecution
parseJSON =
String
-> (Object -> Parser JobExecution) -> Value -> Parser JobExecution
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"JobExecution"
( \Object
x ->
Maybe JobExecutionStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Integer
-> Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution
JobExecution'
(Maybe JobExecutionStatus
-> Maybe Text
-> Maybe POSIX
-> Maybe Integer
-> Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
-> Parser (Maybe JobExecutionStatus)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Integer
-> Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe JobExecutionStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Integer
-> Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Integer
-> Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
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
"jobId")
Parser
(Maybe POSIX
-> Maybe Integer
-> Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Integer
-> Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
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
"lastUpdatedAt")
Parser
(Maybe Integer
-> Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
-> Parser (Maybe Integer)
-> Parser
(Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"approximateSecondsBeforeTimedOut")
Parser
(Maybe POSIX
-> Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
-> Parser (Maybe POSIX)
-> Parser
(Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
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
"queuedAt")
Parser
(Maybe JobExecutionStatusDetails
-> Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
-> Parser (Maybe JobExecutionStatusDetails)
-> Parser
(Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobExecutionStatusDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"statusDetails")
Parser
(Maybe Text
-> Maybe Integer
-> Maybe Integer
-> Maybe POSIX
-> Maybe Bool
-> JobExecution)
-> Parser (Maybe Text)
-> Parser
(Maybe Integer
-> Maybe Integer -> Maybe POSIX -> Maybe Bool -> JobExecution)
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
"thingArn")
Parser
(Maybe Integer
-> Maybe Integer -> Maybe POSIX -> Maybe Bool -> JobExecution)
-> Parser (Maybe Integer)
-> Parser
(Maybe Integer -> Maybe POSIX -> Maybe Bool -> JobExecution)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"executionNumber")
Parser (Maybe Integer -> Maybe POSIX -> Maybe Bool -> JobExecution)
-> Parser (Maybe Integer)
-> Parser (Maybe POSIX -> Maybe Bool -> JobExecution)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"versionNumber")
Parser (Maybe POSIX -> Maybe Bool -> JobExecution)
-> Parser (Maybe POSIX) -> Parser (Maybe Bool -> JobExecution)
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
"startedAt")
Parser (Maybe Bool -> JobExecution)
-> Parser (Maybe Bool) -> Parser JobExecution
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"forceCanceled")
)
instance Prelude.Hashable JobExecution
instance Prelude.NFData JobExecution