{-# 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.Glue.Types.TaskRun
-- 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.Glue.Types.TaskRun where

import qualified Amazonka.Core as Core
import Amazonka.Glue.Types.TaskRunProperties
import Amazonka.Glue.Types.TaskStatusType
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The sampling parameters that are associated with the machine learning
-- transform.
--
-- /See:/ 'newTaskRun' smart constructor.
data TaskRun = TaskRun'
  { -- | The last point in time that the requested task run was completed.
    TaskRun -> Maybe POSIX
completedOn :: Prelude.Maybe Core.POSIX,
    -- | The current status of the requested task run.
    TaskRun -> Maybe TaskStatusType
status :: Prelude.Maybe TaskStatusType,
    -- | The last point in time that the requested task run was updated.
    TaskRun -> Maybe POSIX
lastModifiedOn :: Prelude.Maybe Core.POSIX,
    -- | The list of error strings associated with this task run.
    TaskRun -> Maybe Text
errorString :: Prelude.Maybe Prelude.Text,
    -- | The date and time that this task run started.
    TaskRun -> Maybe POSIX
startedOn :: Prelude.Maybe Core.POSIX,
    -- | The names of the log group for secure logging, associated with this task
    -- run.
    TaskRun -> Maybe Text
logGroupName :: Prelude.Maybe Prelude.Text,
    -- | The amount of time (in seconds) that the task run consumed resources.
    TaskRun -> Maybe Int
executionTime :: Prelude.Maybe Prelude.Int,
    -- | Specifies configuration properties associated with this task run.
    TaskRun -> Maybe TaskRunProperties
properties :: Prelude.Maybe TaskRunProperties,
    -- | The unique identifier for the transform.
    TaskRun -> Maybe Text
transformId :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for this task run.
    TaskRun -> Maybe Text
taskRunId :: Prelude.Maybe Prelude.Text
  }
  deriving (TaskRun -> TaskRun -> Bool
(TaskRun -> TaskRun -> Bool)
-> (TaskRun -> TaskRun -> Bool) -> Eq TaskRun
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TaskRun -> TaskRun -> Bool
$c/= :: TaskRun -> TaskRun -> Bool
== :: TaskRun -> TaskRun -> Bool
$c== :: TaskRun -> TaskRun -> Bool
Prelude.Eq, ReadPrec [TaskRun]
ReadPrec TaskRun
Int -> ReadS TaskRun
ReadS [TaskRun]
(Int -> ReadS TaskRun)
-> ReadS [TaskRun]
-> ReadPrec TaskRun
-> ReadPrec [TaskRun]
-> Read TaskRun
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TaskRun]
$creadListPrec :: ReadPrec [TaskRun]
readPrec :: ReadPrec TaskRun
$creadPrec :: ReadPrec TaskRun
readList :: ReadS [TaskRun]
$creadList :: ReadS [TaskRun]
readsPrec :: Int -> ReadS TaskRun
$creadsPrec :: Int -> ReadS TaskRun
Prelude.Read, Int -> TaskRun -> ShowS
[TaskRun] -> ShowS
TaskRun -> String
(Int -> TaskRun -> ShowS)
-> (TaskRun -> String) -> ([TaskRun] -> ShowS) -> Show TaskRun
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TaskRun] -> ShowS
$cshowList :: [TaskRun] -> ShowS
show :: TaskRun -> String
$cshow :: TaskRun -> String
showsPrec :: Int -> TaskRun -> ShowS
$cshowsPrec :: Int -> TaskRun -> ShowS
Prelude.Show, (forall x. TaskRun -> Rep TaskRun x)
-> (forall x. Rep TaskRun x -> TaskRun) -> Generic TaskRun
forall x. Rep TaskRun x -> TaskRun
forall x. TaskRun -> Rep TaskRun x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TaskRun x -> TaskRun
$cfrom :: forall x. TaskRun -> Rep TaskRun x
Prelude.Generic)

-- |
-- Create a value of 'TaskRun' 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:
--
-- 'completedOn', 'taskRun_completedOn' - The last point in time that the requested task run was completed.
--
-- 'status', 'taskRun_status' - The current status of the requested task run.
--
-- 'lastModifiedOn', 'taskRun_lastModifiedOn' - The last point in time that the requested task run was updated.
--
-- 'errorString', 'taskRun_errorString' - The list of error strings associated with this task run.
--
-- 'startedOn', 'taskRun_startedOn' - The date and time that this task run started.
--
-- 'logGroupName', 'taskRun_logGroupName' - The names of the log group for secure logging, associated with this task
-- run.
--
-- 'executionTime', 'taskRun_executionTime' - The amount of time (in seconds) that the task run consumed resources.
--
-- 'properties', 'taskRun_properties' - Specifies configuration properties associated with this task run.
--
-- 'transformId', 'taskRun_transformId' - The unique identifier for the transform.
--
-- 'taskRunId', 'taskRun_taskRunId' - The unique identifier for this task run.
newTaskRun ::
  TaskRun
newTaskRun :: TaskRun
newTaskRun =
  TaskRun' :: Maybe POSIX
-> Maybe TaskStatusType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> TaskRun
TaskRun'
    { $sel:completedOn:TaskRun' :: Maybe POSIX
completedOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:status:TaskRun' :: Maybe TaskStatusType
status = Maybe TaskStatusType
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedOn:TaskRun' :: Maybe POSIX
lastModifiedOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:errorString:TaskRun' :: Maybe Text
errorString = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:startedOn:TaskRun' :: Maybe POSIX
startedOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:logGroupName:TaskRun' :: Maybe Text
logGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:executionTime:TaskRun' :: Maybe Int
executionTime = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:properties:TaskRun' :: Maybe TaskRunProperties
properties = Maybe TaskRunProperties
forall a. Maybe a
Prelude.Nothing,
      $sel:transformId:TaskRun' :: Maybe Text
transformId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:taskRunId:TaskRun' :: Maybe Text
taskRunId = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The last point in time that the requested task run was completed.
taskRun_completedOn :: Lens.Lens' TaskRun (Prelude.Maybe Prelude.UTCTime)
taskRun_completedOn :: (Maybe UTCTime -> f (Maybe UTCTime)) -> TaskRun -> f TaskRun
taskRun_completedOn = (TaskRun -> Maybe POSIX)
-> (TaskRun -> Maybe POSIX -> TaskRun)
-> Lens TaskRun TaskRun (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskRun' {Maybe POSIX
completedOn :: Maybe POSIX
$sel:completedOn:TaskRun' :: TaskRun -> Maybe POSIX
completedOn} -> Maybe POSIX
completedOn) (\s :: TaskRun
s@TaskRun' {} Maybe POSIX
a -> TaskRun
s {$sel:completedOn:TaskRun' :: Maybe POSIX
completedOn = Maybe POSIX
a} :: TaskRun) ((Maybe POSIX -> f (Maybe POSIX)) -> TaskRun -> f TaskRun)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TaskRun
-> f TaskRun
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 current status of the requested task run.
taskRun_status :: Lens.Lens' TaskRun (Prelude.Maybe TaskStatusType)
taskRun_status :: (Maybe TaskStatusType -> f (Maybe TaskStatusType))
-> TaskRun -> f TaskRun
taskRun_status = (TaskRun -> Maybe TaskStatusType)
-> (TaskRun -> Maybe TaskStatusType -> TaskRun)
-> Lens
     TaskRun TaskRun (Maybe TaskStatusType) (Maybe TaskStatusType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskRun' {Maybe TaskStatusType
status :: Maybe TaskStatusType
$sel:status:TaskRun' :: TaskRun -> Maybe TaskStatusType
status} -> Maybe TaskStatusType
status) (\s :: TaskRun
s@TaskRun' {} Maybe TaskStatusType
a -> TaskRun
s {$sel:status:TaskRun' :: Maybe TaskStatusType
status = Maybe TaskStatusType
a} :: TaskRun)

-- | The last point in time that the requested task run was updated.
taskRun_lastModifiedOn :: Lens.Lens' TaskRun (Prelude.Maybe Prelude.UTCTime)
taskRun_lastModifiedOn :: (Maybe UTCTime -> f (Maybe UTCTime)) -> TaskRun -> f TaskRun
taskRun_lastModifiedOn = (TaskRun -> Maybe POSIX)
-> (TaskRun -> Maybe POSIX -> TaskRun)
-> Lens TaskRun TaskRun (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskRun' {Maybe POSIX
lastModifiedOn :: Maybe POSIX
$sel:lastModifiedOn:TaskRun' :: TaskRun -> Maybe POSIX
lastModifiedOn} -> Maybe POSIX
lastModifiedOn) (\s :: TaskRun
s@TaskRun' {} Maybe POSIX
a -> TaskRun
s {$sel:lastModifiedOn:TaskRun' :: Maybe POSIX
lastModifiedOn = Maybe POSIX
a} :: TaskRun) ((Maybe POSIX -> f (Maybe POSIX)) -> TaskRun -> f TaskRun)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TaskRun
-> f TaskRun
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 list of error strings associated with this task run.
taskRun_errorString :: Lens.Lens' TaskRun (Prelude.Maybe Prelude.Text)
taskRun_errorString :: (Maybe Text -> f (Maybe Text)) -> TaskRun -> f TaskRun
taskRun_errorString = (TaskRun -> Maybe Text)
-> (TaskRun -> Maybe Text -> TaskRun)
-> Lens TaskRun TaskRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskRun' {Maybe Text
errorString :: Maybe Text
$sel:errorString:TaskRun' :: TaskRun -> Maybe Text
errorString} -> Maybe Text
errorString) (\s :: TaskRun
s@TaskRun' {} Maybe Text
a -> TaskRun
s {$sel:errorString:TaskRun' :: Maybe Text
errorString = Maybe Text
a} :: TaskRun)

-- | The date and time that this task run started.
taskRun_startedOn :: Lens.Lens' TaskRun (Prelude.Maybe Prelude.UTCTime)
taskRun_startedOn :: (Maybe UTCTime -> f (Maybe UTCTime)) -> TaskRun -> f TaskRun
taskRun_startedOn = (TaskRun -> Maybe POSIX)
-> (TaskRun -> Maybe POSIX -> TaskRun)
-> Lens TaskRun TaskRun (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskRun' {Maybe POSIX
startedOn :: Maybe POSIX
$sel:startedOn:TaskRun' :: TaskRun -> Maybe POSIX
startedOn} -> Maybe POSIX
startedOn) (\s :: TaskRun
s@TaskRun' {} Maybe POSIX
a -> TaskRun
s {$sel:startedOn:TaskRun' :: Maybe POSIX
startedOn = Maybe POSIX
a} :: TaskRun) ((Maybe POSIX -> f (Maybe POSIX)) -> TaskRun -> f TaskRun)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TaskRun
-> f TaskRun
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 names of the log group for secure logging, associated with this task
-- run.
taskRun_logGroupName :: Lens.Lens' TaskRun (Prelude.Maybe Prelude.Text)
taskRun_logGroupName :: (Maybe Text -> f (Maybe Text)) -> TaskRun -> f TaskRun
taskRun_logGroupName = (TaskRun -> Maybe Text)
-> (TaskRun -> Maybe Text -> TaskRun)
-> Lens TaskRun TaskRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskRun' {Maybe Text
logGroupName :: Maybe Text
$sel:logGroupName:TaskRun' :: TaskRun -> Maybe Text
logGroupName} -> Maybe Text
logGroupName) (\s :: TaskRun
s@TaskRun' {} Maybe Text
a -> TaskRun
s {$sel:logGroupName:TaskRun' :: Maybe Text
logGroupName = Maybe Text
a} :: TaskRun)

-- | The amount of time (in seconds) that the task run consumed resources.
taskRun_executionTime :: Lens.Lens' TaskRun (Prelude.Maybe Prelude.Int)
taskRun_executionTime :: (Maybe Int -> f (Maybe Int)) -> TaskRun -> f TaskRun
taskRun_executionTime = (TaskRun -> Maybe Int)
-> (TaskRun -> Maybe Int -> TaskRun)
-> Lens TaskRun TaskRun (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskRun' {Maybe Int
executionTime :: Maybe Int
$sel:executionTime:TaskRun' :: TaskRun -> Maybe Int
executionTime} -> Maybe Int
executionTime) (\s :: TaskRun
s@TaskRun' {} Maybe Int
a -> TaskRun
s {$sel:executionTime:TaskRun' :: Maybe Int
executionTime = Maybe Int
a} :: TaskRun)

-- | Specifies configuration properties associated with this task run.
taskRun_properties :: Lens.Lens' TaskRun (Prelude.Maybe TaskRunProperties)
taskRun_properties :: (Maybe TaskRunProperties -> f (Maybe TaskRunProperties))
-> TaskRun -> f TaskRun
taskRun_properties = (TaskRun -> Maybe TaskRunProperties)
-> (TaskRun -> Maybe TaskRunProperties -> TaskRun)
-> Lens
     TaskRun TaskRun (Maybe TaskRunProperties) (Maybe TaskRunProperties)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskRun' {Maybe TaskRunProperties
properties :: Maybe TaskRunProperties
$sel:properties:TaskRun' :: TaskRun -> Maybe TaskRunProperties
properties} -> Maybe TaskRunProperties
properties) (\s :: TaskRun
s@TaskRun' {} Maybe TaskRunProperties
a -> TaskRun
s {$sel:properties:TaskRun' :: Maybe TaskRunProperties
properties = Maybe TaskRunProperties
a} :: TaskRun)

-- | The unique identifier for the transform.
taskRun_transformId :: Lens.Lens' TaskRun (Prelude.Maybe Prelude.Text)
taskRun_transformId :: (Maybe Text -> f (Maybe Text)) -> TaskRun -> f TaskRun
taskRun_transformId = (TaskRun -> Maybe Text)
-> (TaskRun -> Maybe Text -> TaskRun)
-> Lens TaskRun TaskRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskRun' {Maybe Text
transformId :: Maybe Text
$sel:transformId:TaskRun' :: TaskRun -> Maybe Text
transformId} -> Maybe Text
transformId) (\s :: TaskRun
s@TaskRun' {} Maybe Text
a -> TaskRun
s {$sel:transformId:TaskRun' :: Maybe Text
transformId = Maybe Text
a} :: TaskRun)

-- | The unique identifier for this task run.
taskRun_taskRunId :: Lens.Lens' TaskRun (Prelude.Maybe Prelude.Text)
taskRun_taskRunId :: (Maybe Text -> f (Maybe Text)) -> TaskRun -> f TaskRun
taskRun_taskRunId = (TaskRun -> Maybe Text)
-> (TaskRun -> Maybe Text -> TaskRun)
-> Lens TaskRun TaskRun (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskRun' {Maybe Text
taskRunId :: Maybe Text
$sel:taskRunId:TaskRun' :: TaskRun -> Maybe Text
taskRunId} -> Maybe Text
taskRunId) (\s :: TaskRun
s@TaskRun' {} Maybe Text
a -> TaskRun
s {$sel:taskRunId:TaskRun' :: Maybe Text
taskRunId = Maybe Text
a} :: TaskRun)

instance Core.FromJSON TaskRun where
  parseJSON :: Value -> Parser TaskRun
parseJSON =
    String -> (Object -> Parser TaskRun) -> Value -> Parser TaskRun
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"TaskRun"
      ( \Object
x ->
          Maybe POSIX
-> Maybe TaskStatusType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> TaskRun
TaskRun'
            (Maybe POSIX
 -> Maybe TaskStatusType
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Int
 -> Maybe TaskRunProperties
 -> Maybe Text
 -> Maybe Text
 -> TaskRun)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe TaskStatusType
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Int
      -> Maybe TaskRunProperties
      -> Maybe Text
      -> Maybe Text
      -> TaskRun)
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 TaskStatusType
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Int
   -> Maybe TaskRunProperties
   -> Maybe Text
   -> Maybe Text
   -> TaskRun)
-> Parser (Maybe TaskStatusType)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Int
      -> Maybe TaskRunProperties
      -> Maybe Text
      -> Maybe Text
      -> TaskRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskStatusType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Int
   -> Maybe TaskRunProperties
   -> Maybe Text
   -> Maybe Text
   -> TaskRun)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Int
      -> Maybe TaskRunProperties
      -> Maybe Text
      -> Maybe Text
      -> TaskRun)
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 Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Int
   -> Maybe TaskRunProperties
   -> Maybe Text
   -> Maybe Text
   -> TaskRun)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Int
      -> Maybe TaskRunProperties
      -> Maybe Text
      -> Maybe Text
      -> TaskRun)
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
"ErrorString")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Int
   -> Maybe TaskRunProperties
   -> Maybe Text
   -> Maybe Text
   -> TaskRun)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe TaskRunProperties
      -> Maybe Text
      -> Maybe Text
      -> TaskRun)
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 Text
   -> Maybe Int
   -> Maybe TaskRunProperties
   -> Maybe Text
   -> Maybe Text
   -> TaskRun)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe TaskRunProperties -> Maybe Text -> Maybe Text -> TaskRun)
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 TaskRunProperties -> Maybe Text -> Maybe Text -> TaskRun)
-> Parser (Maybe Int)
-> Parser
     (Maybe TaskRunProperties -> Maybe Text -> Maybe Text -> TaskRun)
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 TaskRunProperties -> Maybe Text -> Maybe Text -> TaskRun)
-> Parser (Maybe TaskRunProperties)
-> Parser (Maybe Text -> Maybe Text -> TaskRun)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskRunProperties)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Properties")
            Parser (Maybe Text -> Maybe Text -> TaskRun)
-> Parser (Maybe Text) -> Parser (Maybe Text -> TaskRun)
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
"TransformId")
            Parser (Maybe Text -> TaskRun)
-> Parser (Maybe Text) -> Parser TaskRun
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
"TaskRunId")
      )

instance Prelude.Hashable TaskRun

instance Prelude.NFData TaskRun