{-# 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.Glue.Types.JobRun where
import qualified Amazonka.Core as Core
import Amazonka.Glue.Types.JobRunState
import Amazonka.Glue.Types.NotificationProperty
import Amazonka.Glue.Types.Predecessor
import Amazonka.Glue.Types.WorkerType
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data JobRun = JobRun'
{
JobRun -> Maybe POSIX
completedOn :: Prelude.Maybe Core.POSIX,
JobRun -> Maybe Int
numberOfWorkers :: Prelude.Maybe Prelude.Int,
JobRun -> Maybe Text
triggerName :: Prelude.Maybe Prelude.Text,
JobRun -> Maybe NotificationProperty
notificationProperty :: Prelude.Maybe NotificationProperty,
JobRun -> Maybe POSIX
lastModifiedOn :: Prelude.Maybe Core.POSIX,
JobRun -> Maybe (HashMap Text Text)
arguments :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
JobRun -> Maybe Text
jobName :: Prelude.Maybe Prelude.Text,
JobRun -> Maybe POSIX
startedOn :: Prelude.Maybe Core.POSIX,
JobRun -> Maybe WorkerType
workerType :: Prelude.Maybe WorkerType,
JobRun -> Maybe Text
securityConfiguration :: Prelude.Maybe Prelude.Text,
JobRun -> Maybe Text
glueVersion :: Prelude.Maybe Prelude.Text,
JobRun -> Maybe JobRunState
jobRunState :: Prelude.Maybe JobRunState,
JobRun -> Maybe Text
logGroupName :: Prelude.Maybe Prelude.Text,
JobRun -> Maybe Int
executionTime :: Prelude.Maybe Prelude.Int,
JobRun -> Maybe [Predecessor]
predecessorRuns :: Prelude.Maybe [Predecessor],
JobRun -> Maybe Text
previousRunId :: Prelude.Maybe Prelude.Text,
JobRun -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
JobRun -> Maybe Int
attempt :: Prelude.Maybe Prelude.Int,
JobRun -> Maybe Int
allocatedCapacity :: Prelude.Maybe Prelude.Int,
JobRun -> Maybe Double
maxCapacity :: Prelude.Maybe Prelude.Double,
JobRun -> Maybe Natural
timeout :: Prelude.Maybe Prelude.Natural,
JobRun -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text
}
deriving (JobRun -> JobRun -> Bool
(JobRun -> JobRun -> Bool)
-> (JobRun -> JobRun -> Bool) -> Eq JobRun
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JobRun -> JobRun -> Bool
$c/= :: JobRun -> JobRun -> Bool
== :: JobRun -> JobRun -> Bool
$c== :: JobRun -> JobRun -> Bool
Prelude.Eq, ReadPrec [JobRun]
ReadPrec JobRun
Int -> ReadS JobRun
ReadS [JobRun]
(Int -> ReadS JobRun)
-> ReadS [JobRun]
-> ReadPrec JobRun
-> ReadPrec [JobRun]
-> Read JobRun
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JobRun]
$creadListPrec :: ReadPrec [JobRun]
readPrec :: ReadPrec JobRun
$creadPrec :: ReadPrec JobRun
readList :: ReadS [JobRun]
$creadList :: ReadS [JobRun]
readsPrec :: Int -> ReadS JobRun
$creadsPrec :: Int -> ReadS JobRun
Prelude.Read, Int -> JobRun -> ShowS
[JobRun] -> ShowS
JobRun -> String
(Int -> JobRun -> ShowS)
-> (JobRun -> String) -> ([JobRun] -> ShowS) -> Show JobRun
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JobRun] -> ShowS
$cshowList :: [JobRun] -> ShowS
show :: JobRun -> String
$cshow :: JobRun -> String
showsPrec :: Int -> JobRun -> ShowS
$cshowsPrec :: Int -> JobRun -> ShowS
Prelude.Show, (forall x. JobRun -> Rep JobRun x)
-> (forall x. Rep JobRun x -> JobRun) -> Generic JobRun
forall x. Rep JobRun x -> JobRun
forall x. JobRun -> Rep JobRun x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JobRun x -> JobRun
$cfrom :: forall x. JobRun -> Rep JobRun x
Prelude.Generic)
newJobRun ::
JobRun
newJobRun :: JobRun
newJobRun =
JobRun' :: Maybe POSIX
-> Maybe Int
-> Maybe Text
-> Maybe NotificationProperty
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun
JobRun'
{ $sel:completedOn:JobRun' :: Maybe POSIX
completedOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:numberOfWorkers:JobRun' :: Maybe Int
numberOfWorkers = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:triggerName:JobRun' :: Maybe Text
triggerName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:notificationProperty:JobRun' :: Maybe NotificationProperty
notificationProperty = Maybe NotificationProperty
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedOn:JobRun' :: Maybe POSIX
lastModifiedOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arguments:JobRun' :: Maybe (HashMap Text Text)
arguments = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:JobRun' :: Maybe Text
jobName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startedOn:JobRun' :: Maybe POSIX
startedOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:workerType:JobRun' :: Maybe WorkerType
workerType = Maybe WorkerType
forall a. Maybe a
Prelude.Nothing,
$sel:securityConfiguration:JobRun' :: Maybe Text
securityConfiguration = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:glueVersion:JobRun' :: Maybe Text
glueVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobRunState:JobRun' :: Maybe JobRunState
jobRunState = Maybe JobRunState
forall a. Maybe a
Prelude.Nothing,
$sel:logGroupName:JobRun' :: Maybe Text
logGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionTime:JobRun' :: Maybe Int
executionTime = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:predecessorRuns:JobRun' :: Maybe [Predecessor]
predecessorRuns = Maybe [Predecessor]
forall a. Maybe a
Prelude.Nothing,
$sel:previousRunId:JobRun' :: Maybe Text
previousRunId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:JobRun' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:attempt:JobRun' :: Maybe Int
attempt = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:allocatedCapacity:JobRun' :: Maybe Int
allocatedCapacity = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:maxCapacity:JobRun' :: Maybe Double
maxCapacity = Maybe Double
forall a. Maybe a
Prelude.Nothing,
$sel:timeout:JobRun' :: Maybe Natural
timeout = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:JobRun' :: Maybe Text
errorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
jobRun_completedOn :: Lens.Lens' JobRun (Prelude.Maybe Prelude.UTCTime)
jobRun_completedOn :: (Maybe UTCTime -> f (Maybe UTCTime)) -> JobRun -> f JobRun
jobRun_completedOn = (JobRun -> Maybe POSIX)
-> (JobRun -> Maybe POSIX -> JobRun)
-> Lens JobRun JobRun (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe POSIX
completedOn :: Maybe POSIX
$sel:completedOn:JobRun' :: JobRun -> Maybe POSIX
completedOn} -> Maybe POSIX
completedOn) (\s :: JobRun
s@JobRun' {} Maybe POSIX
a -> JobRun
s {$sel:completedOn:JobRun' :: Maybe POSIX
completedOn = Maybe POSIX
a} :: JobRun) ((Maybe POSIX -> f (Maybe POSIX)) -> JobRun -> f JobRun)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> JobRun
-> f JobRun
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
jobRun_numberOfWorkers :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Int)
jobRun_numberOfWorkers :: (Maybe Int -> f (Maybe Int)) -> JobRun -> f JobRun
jobRun_numberOfWorkers = (JobRun -> Maybe Int)
-> (JobRun -> Maybe Int -> JobRun)
-> Lens JobRun JobRun (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Int
numberOfWorkers :: Maybe Int
$sel:numberOfWorkers:JobRun' :: JobRun -> Maybe Int
numberOfWorkers} -> Maybe Int
numberOfWorkers) (\s :: JobRun
s@JobRun' {} Maybe Int
a -> JobRun
s {$sel:numberOfWorkers:JobRun' :: Maybe Int
numberOfWorkers = Maybe Int
a} :: JobRun)
jobRun_triggerName :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Text)
jobRun_triggerName :: (Maybe Text -> f (Maybe Text)) -> JobRun -> f JobRun
jobRun_triggerName = (JobRun -> Maybe Text)
-> (JobRun -> Maybe Text -> JobRun)
-> Lens JobRun JobRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Text
triggerName :: Maybe Text
$sel:triggerName:JobRun' :: JobRun -> Maybe Text
triggerName} -> Maybe Text
triggerName) (\s :: JobRun
s@JobRun' {} Maybe Text
a -> JobRun
s {$sel:triggerName:JobRun' :: Maybe Text
triggerName = Maybe Text
a} :: JobRun)
jobRun_notificationProperty :: Lens.Lens' JobRun (Prelude.Maybe NotificationProperty)
jobRun_notificationProperty :: (Maybe NotificationProperty -> f (Maybe NotificationProperty))
-> JobRun -> f JobRun
jobRun_notificationProperty = (JobRun -> Maybe NotificationProperty)
-> (JobRun -> Maybe NotificationProperty -> JobRun)
-> Lens
JobRun
JobRun
(Maybe NotificationProperty)
(Maybe NotificationProperty)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe NotificationProperty
notificationProperty :: Maybe NotificationProperty
$sel:notificationProperty:JobRun' :: JobRun -> Maybe NotificationProperty
notificationProperty} -> Maybe NotificationProperty
notificationProperty) (\s :: JobRun
s@JobRun' {} Maybe NotificationProperty
a -> JobRun
s {$sel:notificationProperty:JobRun' :: Maybe NotificationProperty
notificationProperty = Maybe NotificationProperty
a} :: JobRun)
jobRun_lastModifiedOn :: Lens.Lens' JobRun (Prelude.Maybe Prelude.UTCTime)
jobRun_lastModifiedOn :: (Maybe UTCTime -> f (Maybe UTCTime)) -> JobRun -> f JobRun
jobRun_lastModifiedOn = (JobRun -> Maybe POSIX)
-> (JobRun -> Maybe POSIX -> JobRun)
-> Lens JobRun JobRun (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe POSIX
lastModifiedOn :: Maybe POSIX
$sel:lastModifiedOn:JobRun' :: JobRun -> Maybe POSIX
lastModifiedOn} -> Maybe POSIX
lastModifiedOn) (\s :: JobRun
s@JobRun' {} Maybe POSIX
a -> JobRun
s {$sel:lastModifiedOn:JobRun' :: Maybe POSIX
lastModifiedOn = Maybe POSIX
a} :: JobRun) ((Maybe POSIX -> f (Maybe POSIX)) -> JobRun -> f JobRun)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> JobRun
-> f JobRun
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
jobRun_arguments :: Lens.Lens' JobRun (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
jobRun_arguments :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> JobRun -> f JobRun
jobRun_arguments = (JobRun -> Maybe (HashMap Text Text))
-> (JobRun -> Maybe (HashMap Text Text) -> JobRun)
-> Lens
JobRun
JobRun
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe (HashMap Text Text)
arguments :: Maybe (HashMap Text Text)
$sel:arguments:JobRun' :: JobRun -> Maybe (HashMap Text Text)
arguments} -> Maybe (HashMap Text Text)
arguments) (\s :: JobRun
s@JobRun' {} Maybe (HashMap Text Text)
a -> JobRun
s {$sel:arguments:JobRun' :: Maybe (HashMap Text Text)
arguments = Maybe (HashMap Text Text)
a} :: JobRun) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> JobRun -> f JobRun)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> JobRun
-> f JobRun
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
jobRun_jobName :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Text)
jobRun_jobName :: (Maybe Text -> f (Maybe Text)) -> JobRun -> f JobRun
jobRun_jobName = (JobRun -> Maybe Text)
-> (JobRun -> Maybe Text -> JobRun)
-> Lens JobRun JobRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Text
jobName :: Maybe Text
$sel:jobName:JobRun' :: JobRun -> Maybe Text
jobName} -> Maybe Text
jobName) (\s :: JobRun
s@JobRun' {} Maybe Text
a -> JobRun
s {$sel:jobName:JobRun' :: Maybe Text
jobName = Maybe Text
a} :: JobRun)
jobRun_startedOn :: Lens.Lens' JobRun (Prelude.Maybe Prelude.UTCTime)
jobRun_startedOn :: (Maybe UTCTime -> f (Maybe UTCTime)) -> JobRun -> f JobRun
jobRun_startedOn = (JobRun -> Maybe POSIX)
-> (JobRun -> Maybe POSIX -> JobRun)
-> Lens JobRun JobRun (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe POSIX
startedOn :: Maybe POSIX
$sel:startedOn:JobRun' :: JobRun -> Maybe POSIX
startedOn} -> Maybe POSIX
startedOn) (\s :: JobRun
s@JobRun' {} Maybe POSIX
a -> JobRun
s {$sel:startedOn:JobRun' :: Maybe POSIX
startedOn = Maybe POSIX
a} :: JobRun) ((Maybe POSIX -> f (Maybe POSIX)) -> JobRun -> f JobRun)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> JobRun
-> f JobRun
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
jobRun_workerType :: Lens.Lens' JobRun (Prelude.Maybe WorkerType)
jobRun_workerType :: (Maybe WorkerType -> f (Maybe WorkerType)) -> JobRun -> f JobRun
jobRun_workerType = (JobRun -> Maybe WorkerType)
-> (JobRun -> Maybe WorkerType -> JobRun)
-> Lens JobRun JobRun (Maybe WorkerType) (Maybe WorkerType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe WorkerType
workerType :: Maybe WorkerType
$sel:workerType:JobRun' :: JobRun -> Maybe WorkerType
workerType} -> Maybe WorkerType
workerType) (\s :: JobRun
s@JobRun' {} Maybe WorkerType
a -> JobRun
s {$sel:workerType:JobRun' :: Maybe WorkerType
workerType = Maybe WorkerType
a} :: JobRun)
jobRun_securityConfiguration :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Text)
jobRun_securityConfiguration :: (Maybe Text -> f (Maybe Text)) -> JobRun -> f JobRun
jobRun_securityConfiguration = (JobRun -> Maybe Text)
-> (JobRun -> Maybe Text -> JobRun)
-> Lens JobRun JobRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Text
securityConfiguration :: Maybe Text
$sel:securityConfiguration:JobRun' :: JobRun -> Maybe Text
securityConfiguration} -> Maybe Text
securityConfiguration) (\s :: JobRun
s@JobRun' {} Maybe Text
a -> JobRun
s {$sel:securityConfiguration:JobRun' :: Maybe Text
securityConfiguration = Maybe Text
a} :: JobRun)
jobRun_glueVersion :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Text)
jobRun_glueVersion :: (Maybe Text -> f (Maybe Text)) -> JobRun -> f JobRun
jobRun_glueVersion = (JobRun -> Maybe Text)
-> (JobRun -> Maybe Text -> JobRun)
-> Lens JobRun JobRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Text
glueVersion :: Maybe Text
$sel:glueVersion:JobRun' :: JobRun -> Maybe Text
glueVersion} -> Maybe Text
glueVersion) (\s :: JobRun
s@JobRun' {} Maybe Text
a -> JobRun
s {$sel:glueVersion:JobRun' :: Maybe Text
glueVersion = Maybe Text
a} :: JobRun)
jobRun_jobRunState :: Lens.Lens' JobRun (Prelude.Maybe JobRunState)
jobRun_jobRunState :: (Maybe JobRunState -> f (Maybe JobRunState)) -> JobRun -> f JobRun
jobRun_jobRunState = (JobRun -> Maybe JobRunState)
-> (JobRun -> Maybe JobRunState -> JobRun)
-> Lens JobRun JobRun (Maybe JobRunState) (Maybe JobRunState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe JobRunState
jobRunState :: Maybe JobRunState
$sel:jobRunState:JobRun' :: JobRun -> Maybe JobRunState
jobRunState} -> Maybe JobRunState
jobRunState) (\s :: JobRun
s@JobRun' {} Maybe JobRunState
a -> JobRun
s {$sel:jobRunState:JobRun' :: Maybe JobRunState
jobRunState = Maybe JobRunState
a} :: JobRun)
jobRun_logGroupName :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Text)
jobRun_logGroupName :: (Maybe Text -> f (Maybe Text)) -> JobRun -> f JobRun
jobRun_logGroupName = (JobRun -> Maybe Text)
-> (JobRun -> Maybe Text -> JobRun)
-> Lens JobRun JobRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Text
logGroupName :: Maybe Text
$sel:logGroupName:JobRun' :: JobRun -> Maybe Text
logGroupName} -> Maybe Text
logGroupName) (\s :: JobRun
s@JobRun' {} Maybe Text
a -> JobRun
s {$sel:logGroupName:JobRun' :: Maybe Text
logGroupName = Maybe Text
a} :: JobRun)
jobRun_executionTime :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Int)
jobRun_executionTime :: (Maybe Int -> f (Maybe Int)) -> JobRun -> f JobRun
jobRun_executionTime = (JobRun -> Maybe Int)
-> (JobRun -> Maybe Int -> JobRun)
-> Lens JobRun JobRun (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Int
executionTime :: Maybe Int
$sel:executionTime:JobRun' :: JobRun -> Maybe Int
executionTime} -> Maybe Int
executionTime) (\s :: JobRun
s@JobRun' {} Maybe Int
a -> JobRun
s {$sel:executionTime:JobRun' :: Maybe Int
executionTime = Maybe Int
a} :: JobRun)
jobRun_predecessorRuns :: Lens.Lens' JobRun (Prelude.Maybe [Predecessor])
jobRun_predecessorRuns :: (Maybe [Predecessor] -> f (Maybe [Predecessor]))
-> JobRun -> f JobRun
jobRun_predecessorRuns = (JobRun -> Maybe [Predecessor])
-> (JobRun -> Maybe [Predecessor] -> JobRun)
-> Lens JobRun JobRun (Maybe [Predecessor]) (Maybe [Predecessor])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe [Predecessor]
predecessorRuns :: Maybe [Predecessor]
$sel:predecessorRuns:JobRun' :: JobRun -> Maybe [Predecessor]
predecessorRuns} -> Maybe [Predecessor]
predecessorRuns) (\s :: JobRun
s@JobRun' {} Maybe [Predecessor]
a -> JobRun
s {$sel:predecessorRuns:JobRun' :: Maybe [Predecessor]
predecessorRuns = Maybe [Predecessor]
a} :: JobRun) ((Maybe [Predecessor] -> f (Maybe [Predecessor]))
-> JobRun -> f JobRun)
-> ((Maybe [Predecessor] -> f (Maybe [Predecessor]))
-> Maybe [Predecessor] -> f (Maybe [Predecessor]))
-> (Maybe [Predecessor] -> f (Maybe [Predecessor]))
-> JobRun
-> f JobRun
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Predecessor] [Predecessor] [Predecessor] [Predecessor]
-> Iso
(Maybe [Predecessor])
(Maybe [Predecessor])
(Maybe [Predecessor])
(Maybe [Predecessor])
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 [Predecessor] [Predecessor] [Predecessor] [Predecessor]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
jobRun_previousRunId :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Text)
jobRun_previousRunId :: (Maybe Text -> f (Maybe Text)) -> JobRun -> f JobRun
jobRun_previousRunId = (JobRun -> Maybe Text)
-> (JobRun -> Maybe Text -> JobRun)
-> Lens JobRun JobRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Text
previousRunId :: Maybe Text
$sel:previousRunId:JobRun' :: JobRun -> Maybe Text
previousRunId} -> Maybe Text
previousRunId) (\s :: JobRun
s@JobRun' {} Maybe Text
a -> JobRun
s {$sel:previousRunId:JobRun' :: Maybe Text
previousRunId = Maybe Text
a} :: JobRun)
jobRun_id :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Text)
jobRun_id :: (Maybe Text -> f (Maybe Text)) -> JobRun -> f JobRun
jobRun_id = (JobRun -> Maybe Text)
-> (JobRun -> Maybe Text -> JobRun)
-> Lens JobRun JobRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Text
id :: Maybe Text
$sel:id:JobRun' :: JobRun -> Maybe Text
id} -> Maybe Text
id) (\s :: JobRun
s@JobRun' {} Maybe Text
a -> JobRun
s {$sel:id:JobRun' :: Maybe Text
id = Maybe Text
a} :: JobRun)
jobRun_attempt :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Int)
jobRun_attempt :: (Maybe Int -> f (Maybe Int)) -> JobRun -> f JobRun
jobRun_attempt = (JobRun -> Maybe Int)
-> (JobRun -> Maybe Int -> JobRun)
-> Lens JobRun JobRun (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Int
attempt :: Maybe Int
$sel:attempt:JobRun' :: JobRun -> Maybe Int
attempt} -> Maybe Int
attempt) (\s :: JobRun
s@JobRun' {} Maybe Int
a -> JobRun
s {$sel:attempt:JobRun' :: Maybe Int
attempt = Maybe Int
a} :: JobRun)
jobRun_allocatedCapacity :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Int)
jobRun_allocatedCapacity :: (Maybe Int -> f (Maybe Int)) -> JobRun -> f JobRun
jobRun_allocatedCapacity = (JobRun -> Maybe Int)
-> (JobRun -> Maybe Int -> JobRun)
-> Lens JobRun JobRun (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Int
allocatedCapacity :: Maybe Int
$sel:allocatedCapacity:JobRun' :: JobRun -> Maybe Int
allocatedCapacity} -> Maybe Int
allocatedCapacity) (\s :: JobRun
s@JobRun' {} Maybe Int
a -> JobRun
s {$sel:allocatedCapacity:JobRun' :: Maybe Int
allocatedCapacity = Maybe Int
a} :: JobRun)
jobRun_maxCapacity :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Double)
jobRun_maxCapacity :: (Maybe Double -> f (Maybe Double)) -> JobRun -> f JobRun
jobRun_maxCapacity = (JobRun -> Maybe Double)
-> (JobRun -> Maybe Double -> JobRun)
-> Lens JobRun JobRun (Maybe Double) (Maybe Double)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Double
maxCapacity :: Maybe Double
$sel:maxCapacity:JobRun' :: JobRun -> Maybe Double
maxCapacity} -> Maybe Double
maxCapacity) (\s :: JobRun
s@JobRun' {} Maybe Double
a -> JobRun
s {$sel:maxCapacity:JobRun' :: Maybe Double
maxCapacity = Maybe Double
a} :: JobRun)
jobRun_timeout :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Natural)
jobRun_timeout :: (Maybe Natural -> f (Maybe Natural)) -> JobRun -> f JobRun
jobRun_timeout = (JobRun -> Maybe Natural)
-> (JobRun -> Maybe Natural -> JobRun)
-> Lens JobRun JobRun (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Natural
timeout :: Maybe Natural
$sel:timeout:JobRun' :: JobRun -> Maybe Natural
timeout} -> Maybe Natural
timeout) (\s :: JobRun
s@JobRun' {} Maybe Natural
a -> JobRun
s {$sel:timeout:JobRun' :: Maybe Natural
timeout = Maybe Natural
a} :: JobRun)
jobRun_errorMessage :: Lens.Lens' JobRun (Prelude.Maybe Prelude.Text)
jobRun_errorMessage :: (Maybe Text -> f (Maybe Text)) -> JobRun -> f JobRun
jobRun_errorMessage = (JobRun -> Maybe Text)
-> (JobRun -> Maybe Text -> JobRun)
-> Lens JobRun JobRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobRun' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:JobRun' :: JobRun -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: JobRun
s@JobRun' {} Maybe Text
a -> JobRun
s {$sel:errorMessage:JobRun' :: Maybe Text
errorMessage = Maybe Text
a} :: JobRun)
instance Core.FromJSON JobRun where
parseJSON :: Value -> Parser JobRun
parseJSON =
String -> (Object -> Parser JobRun) -> Value -> Parser JobRun
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"JobRun"
( \Object
x ->
Maybe POSIX
-> Maybe Int
-> Maybe Text
-> Maybe NotificationProperty
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun
JobRun'
(Maybe POSIX
-> Maybe Int
-> Maybe Text
-> Maybe NotificationProperty
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Int
-> Maybe Text
-> Maybe NotificationProperty
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
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
"CompletedOn")
Parser
(Maybe Int
-> Maybe Text
-> Maybe NotificationProperty
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe Int)
-> Parser
(Maybe Text
-> Maybe NotificationProperty
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NumberOfWorkers")
Parser
(Maybe Text
-> Maybe NotificationProperty
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe Text)
-> Parser
(Maybe NotificationProperty
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
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
"TriggerName")
Parser
(Maybe NotificationProperty
-> Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe NotificationProperty)
-> Parser
(Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe NotificationProperty)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NotificationProperty")
Parser
(Maybe POSIX
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe POSIX)
-> Parser
(Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
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
"LastModifiedOn")
Parser
(Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Arguments" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
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
"JobName")
Parser
(Maybe POSIX
-> Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe POSIX)
-> Parser
(Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
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
"StartedOn")
Parser
(Maybe WorkerType
-> Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe WorkerType)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe WorkerType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"WorkerType")
Parser
(Maybe Text
-> Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
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
"SecurityConfiguration")
Parser
(Maybe Text
-> Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe Text)
-> Parser
(Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
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
"GlueVersion")
Parser
(Maybe JobRunState
-> Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe JobRunState)
-> Parser
(Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobRunState)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JobRunState")
Parser
(Maybe Text
-> Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe Text)
-> Parser
(Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
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
"LogGroupName")
Parser
(Maybe Int
-> Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe Int)
-> Parser
(Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ExecutionTime")
Parser
(Maybe [Predecessor]
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe [Predecessor])
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Predecessor]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PredecessorRuns"
Parser (Maybe (Maybe [Predecessor]))
-> Maybe [Predecessor] -> Parser (Maybe [Predecessor])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Predecessor]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
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
"PreviousRunId")
Parser
(Maybe Text
-> Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe Text)
-> Parser
(Maybe Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
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 Int
-> Maybe Int
-> Maybe Double
-> Maybe Natural
-> Maybe Text
-> JobRun)
-> Parser (Maybe Int)
-> Parser
(Maybe Int
-> Maybe Double -> Maybe Natural -> Maybe Text -> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Attempt")
Parser
(Maybe Int
-> Maybe Double -> Maybe Natural -> Maybe Text -> JobRun)
-> Parser (Maybe Int)
-> Parser (Maybe Double -> Maybe Natural -> Maybe Text -> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AllocatedCapacity")
Parser (Maybe Double -> Maybe Natural -> Maybe Text -> JobRun)
-> Parser (Maybe Double)
-> Parser (Maybe Natural -> Maybe Text -> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Double)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"MaxCapacity")
Parser (Maybe Natural -> Maybe Text -> JobRun)
-> Parser (Maybe Natural) -> Parser (Maybe Text -> JobRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Timeout")
Parser (Maybe Text -> JobRun)
-> Parser (Maybe Text) -> Parser JobRun
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
"ErrorMessage")
)
instance Prelude.Hashable JobRun
instance Prelude.NFData JobRun