{-# 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.ECS.Types.Task where
import qualified Amazonka.Core as Core
import Amazonka.ECS.Types.Attachment
import Amazonka.ECS.Types.Attribute
import Amazonka.ECS.Types.Connectivity
import Amazonka.ECS.Types.Container
import Amazonka.ECS.Types.EphemeralStorage
import Amazonka.ECS.Types.HealthStatus
import Amazonka.ECS.Types.InferenceAccelerator
import Amazonka.ECS.Types.LaunchType
import Amazonka.ECS.Types.Tag
import Amazonka.ECS.Types.TaskOverride
import Amazonka.ECS.Types.TaskStopCode
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data Task = Task'
{
Task -> Maybe POSIX
stoppedAt :: Prelude.Maybe Core.POSIX,
Task -> Maybe Text
desiredStatus :: Prelude.Maybe Prelude.Text,
Task -> Maybe TaskOverride
overrides :: Prelude.Maybe TaskOverride,
Task -> Maybe [InferenceAccelerator]
inferenceAccelerators :: Prelude.Maybe [InferenceAccelerator],
Task -> Maybe Text
clusterArn :: Prelude.Maybe Prelude.Text,
Task -> Maybe Text
group' :: Prelude.Maybe Prelude.Text,
Task -> Maybe [Attachment]
attachments :: Prelude.Maybe [Attachment],
Task -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
Task -> Maybe TaskStopCode
stopCode :: Prelude.Maybe TaskStopCode,
Task -> Maybe Text
platformVersion :: Prelude.Maybe Prelude.Text,
Task -> Maybe Text
taskArn :: Prelude.Maybe Prelude.Text,
Task -> Maybe Text
containerInstanceArn :: Prelude.Maybe Prelude.Text,
Task -> Maybe POSIX
executionStoppedAt :: Prelude.Maybe Core.POSIX,
Task -> Maybe EphemeralStorage
ephemeralStorage :: Prelude.Maybe EphemeralStorage,
Task -> Maybe Text
lastStatus :: Prelude.Maybe Prelude.Text,
Task -> Maybe Text
memory :: Prelude.Maybe Prelude.Text,
Task -> Maybe POSIX
pullStoppedAt :: Prelude.Maybe Core.POSIX,
Task -> Maybe [Container]
containers :: Prelude.Maybe [Container],
Task -> Maybe POSIX
startedAt :: Prelude.Maybe Core.POSIX,
Task -> Maybe Text
availabilityZone :: Prelude.Maybe Prelude.Text,
Task -> Maybe [Attribute]
attributes :: Prelude.Maybe [Attribute],
Task -> Maybe Integer
version :: Prelude.Maybe Prelude.Integer,
Task -> Maybe Text
capacityProviderName :: Prelude.Maybe Prelude.Text,
Task -> Maybe Text
startedBy :: Prelude.Maybe Prelude.Text,
Task -> Maybe Text
stoppedReason :: Prelude.Maybe Prelude.Text,
Task -> Maybe Connectivity
connectivity :: Prelude.Maybe Connectivity,
Task -> Maybe POSIX
stoppingAt :: Prelude.Maybe Core.POSIX,
Task -> Maybe LaunchType
launchType :: Prelude.Maybe LaunchType,
Task -> Maybe Text
taskDefinitionArn :: Prelude.Maybe Prelude.Text,
Task -> Maybe HealthStatus
healthStatus :: Prelude.Maybe HealthStatus,
Task -> Maybe POSIX
connectivityAt :: Prelude.Maybe Core.POSIX,
Task -> Maybe Text
cpu :: Prelude.Maybe Prelude.Text,
Task -> Maybe Bool
enableExecuteCommand :: Prelude.Maybe Prelude.Bool,
Task -> Maybe POSIX
pullStartedAt :: Prelude.Maybe Core.POSIX,
Task -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
}
deriving (Task -> Task -> Bool
(Task -> Task -> Bool) -> (Task -> Task -> Bool) -> Eq Task
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Task -> Task -> Bool
$c/= :: Task -> Task -> Bool
== :: Task -> Task -> Bool
$c== :: Task -> Task -> Bool
Prelude.Eq, ReadPrec [Task]
ReadPrec Task
Int -> ReadS Task
ReadS [Task]
(Int -> ReadS Task)
-> ReadS [Task] -> ReadPrec Task -> ReadPrec [Task] -> Read Task
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Task]
$creadListPrec :: ReadPrec [Task]
readPrec :: ReadPrec Task
$creadPrec :: ReadPrec Task
readList :: ReadS [Task]
$creadList :: ReadS [Task]
readsPrec :: Int -> ReadS Task
$creadsPrec :: Int -> ReadS Task
Prelude.Read, Int -> Task -> ShowS
[Task] -> ShowS
Task -> String
(Int -> Task -> ShowS)
-> (Task -> String) -> ([Task] -> ShowS) -> Show Task
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Task] -> ShowS
$cshowList :: [Task] -> ShowS
show :: Task -> String
$cshow :: Task -> String
showsPrec :: Int -> Task -> ShowS
$cshowsPrec :: Int -> Task -> ShowS
Prelude.Show, (forall x. Task -> Rep Task x)
-> (forall x. Rep Task x -> Task) -> Generic Task
forall x. Rep Task x -> Task
forall x. Task -> Rep Task x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Task x -> Task
$cfrom :: forall x. Task -> Rep Task x
Prelude.Generic)
newTask ::
Task
newTask :: Task
newTask =
Task' :: Maybe POSIX
-> Maybe Text
-> Maybe TaskOverride
-> Maybe [InferenceAccelerator]
-> Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task
Task'
{ $sel:stoppedAt:Task' :: Maybe POSIX
stoppedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:desiredStatus:Task' :: Maybe Text
desiredStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:overrides:Task' :: Maybe TaskOverride
overrides = Maybe TaskOverride
forall a. Maybe a
Prelude.Nothing,
$sel:inferenceAccelerators:Task' :: Maybe [InferenceAccelerator]
inferenceAccelerators = Maybe [InferenceAccelerator]
forall a. Maybe a
Prelude.Nothing,
$sel:clusterArn:Task' :: Maybe Text
clusterArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:group':Task' :: Maybe Text
group' = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:attachments:Task' :: Maybe [Attachment]
attachments = Maybe [Attachment]
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:Task' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:stopCode:Task' :: Maybe TaskStopCode
stopCode = Maybe TaskStopCode
forall a. Maybe a
Prelude.Nothing,
$sel:platformVersion:Task' :: Maybe Text
platformVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:taskArn:Task' :: Maybe Text
taskArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:containerInstanceArn:Task' :: Maybe Text
containerInstanceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionStoppedAt:Task' :: Maybe POSIX
executionStoppedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:ephemeralStorage:Task' :: Maybe EphemeralStorage
ephemeralStorage = Maybe EphemeralStorage
forall a. Maybe a
Prelude.Nothing,
$sel:lastStatus:Task' :: Maybe Text
lastStatus = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:memory:Task' :: Maybe Text
memory = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pullStoppedAt:Task' :: Maybe POSIX
pullStoppedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:containers:Task' :: Maybe [Container]
containers = Maybe [Container]
forall a. Maybe a
Prelude.Nothing,
$sel:startedAt:Task' :: Maybe POSIX
startedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:availabilityZone:Task' :: Maybe Text
availabilityZone = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:attributes:Task' :: Maybe [Attribute]
attributes = Maybe [Attribute]
forall a. Maybe a
Prelude.Nothing,
$sel:version:Task' :: Maybe Integer
version = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:capacityProviderName:Task' :: Maybe Text
capacityProviderName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startedBy:Task' :: Maybe Text
startedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:stoppedReason:Task' :: Maybe Text
stoppedReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:connectivity:Task' :: Maybe Connectivity
connectivity = Maybe Connectivity
forall a. Maybe a
Prelude.Nothing,
$sel:stoppingAt:Task' :: Maybe POSIX
stoppingAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:launchType:Task' :: Maybe LaunchType
launchType = Maybe LaunchType
forall a. Maybe a
Prelude.Nothing,
$sel:taskDefinitionArn:Task' :: Maybe Text
taskDefinitionArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:healthStatus:Task' :: Maybe HealthStatus
healthStatus = Maybe HealthStatus
forall a. Maybe a
Prelude.Nothing,
$sel:connectivityAt:Task' :: Maybe POSIX
connectivityAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:cpu:Task' :: Maybe Text
cpu = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableExecuteCommand:Task' :: Maybe Bool
enableExecuteCommand = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:pullStartedAt:Task' :: Maybe POSIX
pullStartedAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:tags:Task' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing
}
task_stoppedAt :: Lens.Lens' Task (Prelude.Maybe Prelude.UTCTime)
task_stoppedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Task -> f Task
task_stoppedAt = (Task -> Maybe POSIX)
-> (Task -> Maybe POSIX -> Task)
-> Lens Task Task (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe POSIX
stoppedAt :: Maybe POSIX
$sel:stoppedAt:Task' :: Task -> Maybe POSIX
stoppedAt} -> Maybe POSIX
stoppedAt) (\s :: Task
s@Task' {} Maybe POSIX
a -> Task
s {$sel:stoppedAt:Task' :: Maybe POSIX
stoppedAt = Maybe POSIX
a} :: Task) ((Maybe POSIX -> f (Maybe POSIX)) -> Task -> f Task)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Task
-> f Task
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
task_desiredStatus :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_desiredStatus :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_desiredStatus = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
desiredStatus :: Maybe Text
$sel:desiredStatus:Task' :: Task -> Maybe Text
desiredStatus} -> Maybe Text
desiredStatus) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:desiredStatus:Task' :: Maybe Text
desiredStatus = Maybe Text
a} :: Task)
task_overrides :: Lens.Lens' Task (Prelude.Maybe TaskOverride)
task_overrides :: (Maybe TaskOverride -> f (Maybe TaskOverride)) -> Task -> f Task
task_overrides = (Task -> Maybe TaskOverride)
-> (Task -> Maybe TaskOverride -> Task)
-> Lens Task Task (Maybe TaskOverride) (Maybe TaskOverride)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe TaskOverride
overrides :: Maybe TaskOverride
$sel:overrides:Task' :: Task -> Maybe TaskOverride
overrides} -> Maybe TaskOverride
overrides) (\s :: Task
s@Task' {} Maybe TaskOverride
a -> Task
s {$sel:overrides:Task' :: Maybe TaskOverride
overrides = Maybe TaskOverride
a} :: Task)
task_inferenceAccelerators :: Lens.Lens' Task (Prelude.Maybe [InferenceAccelerator])
task_inferenceAccelerators :: (Maybe [InferenceAccelerator] -> f (Maybe [InferenceAccelerator]))
-> Task -> f Task
task_inferenceAccelerators = (Task -> Maybe [InferenceAccelerator])
-> (Task -> Maybe [InferenceAccelerator] -> Task)
-> Lens
Task
Task
(Maybe [InferenceAccelerator])
(Maybe [InferenceAccelerator])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe [InferenceAccelerator]
inferenceAccelerators :: Maybe [InferenceAccelerator]
$sel:inferenceAccelerators:Task' :: Task -> Maybe [InferenceAccelerator]
inferenceAccelerators} -> Maybe [InferenceAccelerator]
inferenceAccelerators) (\s :: Task
s@Task' {} Maybe [InferenceAccelerator]
a -> Task
s {$sel:inferenceAccelerators:Task' :: Maybe [InferenceAccelerator]
inferenceAccelerators = Maybe [InferenceAccelerator]
a} :: Task) ((Maybe [InferenceAccelerator] -> f (Maybe [InferenceAccelerator]))
-> Task -> f Task)
-> ((Maybe [InferenceAccelerator]
-> f (Maybe [InferenceAccelerator]))
-> Maybe [InferenceAccelerator]
-> f (Maybe [InferenceAccelerator]))
-> (Maybe [InferenceAccelerator]
-> f (Maybe [InferenceAccelerator]))
-> Task
-> f Task
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[InferenceAccelerator]
[InferenceAccelerator]
[InferenceAccelerator]
[InferenceAccelerator]
-> Iso
(Maybe [InferenceAccelerator])
(Maybe [InferenceAccelerator])
(Maybe [InferenceAccelerator])
(Maybe [InferenceAccelerator])
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
[InferenceAccelerator]
[InferenceAccelerator]
[InferenceAccelerator]
[InferenceAccelerator]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
task_clusterArn :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_clusterArn :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_clusterArn = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
clusterArn :: Maybe Text
$sel:clusterArn:Task' :: Task -> Maybe Text
clusterArn} -> Maybe Text
clusterArn) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:clusterArn:Task' :: Maybe Text
clusterArn = Maybe Text
a} :: Task)
task_group :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_group :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_group = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
group' :: Maybe Text
$sel:group':Task' :: Task -> Maybe Text
group'} -> Maybe Text
group') (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:group':Task' :: Maybe Text
group' = Maybe Text
a} :: Task)
task_attachments :: Lens.Lens' Task (Prelude.Maybe [Attachment])
task_attachments :: (Maybe [Attachment] -> f (Maybe [Attachment])) -> Task -> f Task
task_attachments = (Task -> Maybe [Attachment])
-> (Task -> Maybe [Attachment] -> Task)
-> Lens Task Task (Maybe [Attachment]) (Maybe [Attachment])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe [Attachment]
attachments :: Maybe [Attachment]
$sel:attachments:Task' :: Task -> Maybe [Attachment]
attachments} -> Maybe [Attachment]
attachments) (\s :: Task
s@Task' {} Maybe [Attachment]
a -> Task
s {$sel:attachments:Task' :: Maybe [Attachment]
attachments = Maybe [Attachment]
a} :: Task) ((Maybe [Attachment] -> f (Maybe [Attachment])) -> Task -> f Task)
-> ((Maybe [Attachment] -> f (Maybe [Attachment]))
-> Maybe [Attachment] -> f (Maybe [Attachment]))
-> (Maybe [Attachment] -> f (Maybe [Attachment]))
-> Task
-> f Task
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Attachment] [Attachment] [Attachment] [Attachment]
-> Iso
(Maybe [Attachment])
(Maybe [Attachment])
(Maybe [Attachment])
(Maybe [Attachment])
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 [Attachment] [Attachment] [Attachment] [Attachment]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
task_createdAt :: Lens.Lens' Task (Prelude.Maybe Prelude.UTCTime)
task_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Task -> f Task
task_createdAt = (Task -> Maybe POSIX)
-> (Task -> Maybe POSIX -> Task)
-> Lens Task Task (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:Task' :: Task -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: Task
s@Task' {} Maybe POSIX
a -> Task
s {$sel:createdAt:Task' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: Task) ((Maybe POSIX -> f (Maybe POSIX)) -> Task -> f Task)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Task
-> f Task
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
task_stopCode :: Lens.Lens' Task (Prelude.Maybe TaskStopCode)
task_stopCode :: (Maybe TaskStopCode -> f (Maybe TaskStopCode)) -> Task -> f Task
task_stopCode = (Task -> Maybe TaskStopCode)
-> (Task -> Maybe TaskStopCode -> Task)
-> Lens Task Task (Maybe TaskStopCode) (Maybe TaskStopCode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe TaskStopCode
stopCode :: Maybe TaskStopCode
$sel:stopCode:Task' :: Task -> Maybe TaskStopCode
stopCode} -> Maybe TaskStopCode
stopCode) (\s :: Task
s@Task' {} Maybe TaskStopCode
a -> Task
s {$sel:stopCode:Task' :: Maybe TaskStopCode
stopCode = Maybe TaskStopCode
a} :: Task)
task_platformVersion :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_platformVersion :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_platformVersion = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
platformVersion :: Maybe Text
$sel:platformVersion:Task' :: Task -> Maybe Text
platformVersion} -> Maybe Text
platformVersion) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:platformVersion:Task' :: Maybe Text
platformVersion = Maybe Text
a} :: Task)
task_taskArn :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_taskArn :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_taskArn = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
taskArn :: Maybe Text
$sel:taskArn:Task' :: Task -> Maybe Text
taskArn} -> Maybe Text
taskArn) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:taskArn:Task' :: Maybe Text
taskArn = Maybe Text
a} :: Task)
task_containerInstanceArn :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_containerInstanceArn :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_containerInstanceArn = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
containerInstanceArn :: Maybe Text
$sel:containerInstanceArn:Task' :: Task -> Maybe Text
containerInstanceArn} -> Maybe Text
containerInstanceArn) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:containerInstanceArn:Task' :: Maybe Text
containerInstanceArn = Maybe Text
a} :: Task)
task_executionStoppedAt :: Lens.Lens' Task (Prelude.Maybe Prelude.UTCTime)
task_executionStoppedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Task -> f Task
task_executionStoppedAt = (Task -> Maybe POSIX)
-> (Task -> Maybe POSIX -> Task)
-> Lens Task Task (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe POSIX
executionStoppedAt :: Maybe POSIX
$sel:executionStoppedAt:Task' :: Task -> Maybe POSIX
executionStoppedAt} -> Maybe POSIX
executionStoppedAt) (\s :: Task
s@Task' {} Maybe POSIX
a -> Task
s {$sel:executionStoppedAt:Task' :: Maybe POSIX
executionStoppedAt = Maybe POSIX
a} :: Task) ((Maybe POSIX -> f (Maybe POSIX)) -> Task -> f Task)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Task
-> f Task
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
task_ephemeralStorage :: Lens.Lens' Task (Prelude.Maybe EphemeralStorage)
task_ephemeralStorage :: (Maybe EphemeralStorage -> f (Maybe EphemeralStorage))
-> Task -> f Task
task_ephemeralStorage = (Task -> Maybe EphemeralStorage)
-> (Task -> Maybe EphemeralStorage -> Task)
-> Lens Task Task (Maybe EphemeralStorage) (Maybe EphemeralStorage)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe EphemeralStorage
ephemeralStorage :: Maybe EphemeralStorage
$sel:ephemeralStorage:Task' :: Task -> Maybe EphemeralStorage
ephemeralStorage} -> Maybe EphemeralStorage
ephemeralStorage) (\s :: Task
s@Task' {} Maybe EphemeralStorage
a -> Task
s {$sel:ephemeralStorage:Task' :: Maybe EphemeralStorage
ephemeralStorage = Maybe EphemeralStorage
a} :: Task)
task_lastStatus :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_lastStatus :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_lastStatus = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
lastStatus :: Maybe Text
$sel:lastStatus:Task' :: Task -> Maybe Text
lastStatus} -> Maybe Text
lastStatus) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:lastStatus:Task' :: Maybe Text
lastStatus = Maybe Text
a} :: Task)
task_memory :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_memory :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_memory = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
memory :: Maybe Text
$sel:memory:Task' :: Task -> Maybe Text
memory} -> Maybe Text
memory) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:memory:Task' :: Maybe Text
memory = Maybe Text
a} :: Task)
task_pullStoppedAt :: Lens.Lens' Task (Prelude.Maybe Prelude.UTCTime)
task_pullStoppedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Task -> f Task
task_pullStoppedAt = (Task -> Maybe POSIX)
-> (Task -> Maybe POSIX -> Task)
-> Lens Task Task (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe POSIX
pullStoppedAt :: Maybe POSIX
$sel:pullStoppedAt:Task' :: Task -> Maybe POSIX
pullStoppedAt} -> Maybe POSIX
pullStoppedAt) (\s :: Task
s@Task' {} Maybe POSIX
a -> Task
s {$sel:pullStoppedAt:Task' :: Maybe POSIX
pullStoppedAt = Maybe POSIX
a} :: Task) ((Maybe POSIX -> f (Maybe POSIX)) -> Task -> f Task)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Task
-> f Task
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
task_containers :: Lens.Lens' Task (Prelude.Maybe [Container])
task_containers :: (Maybe [Container] -> f (Maybe [Container])) -> Task -> f Task
task_containers = (Task -> Maybe [Container])
-> (Task -> Maybe [Container] -> Task)
-> Lens Task Task (Maybe [Container]) (Maybe [Container])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe [Container]
containers :: Maybe [Container]
$sel:containers:Task' :: Task -> Maybe [Container]
containers} -> Maybe [Container]
containers) (\s :: Task
s@Task' {} Maybe [Container]
a -> Task
s {$sel:containers:Task' :: Maybe [Container]
containers = Maybe [Container]
a} :: Task) ((Maybe [Container] -> f (Maybe [Container])) -> Task -> f Task)
-> ((Maybe [Container] -> f (Maybe [Container]))
-> Maybe [Container] -> f (Maybe [Container]))
-> (Maybe [Container] -> f (Maybe [Container]))
-> Task
-> f Task
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Container] [Container] [Container] [Container]
-> Iso
(Maybe [Container])
(Maybe [Container])
(Maybe [Container])
(Maybe [Container])
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 [Container] [Container] [Container] [Container]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
task_startedAt :: Lens.Lens' Task (Prelude.Maybe Prelude.UTCTime)
task_startedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Task -> f Task
task_startedAt = (Task -> Maybe POSIX)
-> (Task -> Maybe POSIX -> Task)
-> Lens Task Task (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe POSIX
startedAt :: Maybe POSIX
$sel:startedAt:Task' :: Task -> Maybe POSIX
startedAt} -> Maybe POSIX
startedAt) (\s :: Task
s@Task' {} Maybe POSIX
a -> Task
s {$sel:startedAt:Task' :: Maybe POSIX
startedAt = Maybe POSIX
a} :: Task) ((Maybe POSIX -> f (Maybe POSIX)) -> Task -> f Task)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Task
-> f Task
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
task_availabilityZone :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_availabilityZone :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_availabilityZone = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
availabilityZone :: Maybe Text
$sel:availabilityZone:Task' :: Task -> Maybe Text
availabilityZone} -> Maybe Text
availabilityZone) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:availabilityZone:Task' :: Maybe Text
availabilityZone = Maybe Text
a} :: Task)
task_attributes :: Lens.Lens' Task (Prelude.Maybe [Attribute])
task_attributes :: (Maybe [Attribute] -> f (Maybe [Attribute])) -> Task -> f Task
task_attributes = (Task -> Maybe [Attribute])
-> (Task -> Maybe [Attribute] -> Task)
-> Lens Task Task (Maybe [Attribute]) (Maybe [Attribute])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe [Attribute]
attributes :: Maybe [Attribute]
$sel:attributes:Task' :: Task -> Maybe [Attribute]
attributes} -> Maybe [Attribute]
attributes) (\s :: Task
s@Task' {} Maybe [Attribute]
a -> Task
s {$sel:attributes:Task' :: Maybe [Attribute]
attributes = Maybe [Attribute]
a} :: Task) ((Maybe [Attribute] -> f (Maybe [Attribute])) -> Task -> f Task)
-> ((Maybe [Attribute] -> f (Maybe [Attribute]))
-> Maybe [Attribute] -> f (Maybe [Attribute]))
-> (Maybe [Attribute] -> f (Maybe [Attribute]))
-> Task
-> f Task
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Attribute] [Attribute] [Attribute] [Attribute]
-> Iso
(Maybe [Attribute])
(Maybe [Attribute])
(Maybe [Attribute])
(Maybe [Attribute])
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 [Attribute] [Attribute] [Attribute] [Attribute]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
task_version :: Lens.Lens' Task (Prelude.Maybe Prelude.Integer)
task_version :: (Maybe Integer -> f (Maybe Integer)) -> Task -> f Task
task_version = (Task -> Maybe Integer)
-> (Task -> Maybe Integer -> Task)
-> Lens Task Task (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Integer
version :: Maybe Integer
$sel:version:Task' :: Task -> Maybe Integer
version} -> Maybe Integer
version) (\s :: Task
s@Task' {} Maybe Integer
a -> Task
s {$sel:version:Task' :: Maybe Integer
version = Maybe Integer
a} :: Task)
task_capacityProviderName :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_capacityProviderName :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_capacityProviderName = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
capacityProviderName :: Maybe Text
$sel:capacityProviderName:Task' :: Task -> Maybe Text
capacityProviderName} -> Maybe Text
capacityProviderName) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:capacityProviderName:Task' :: Maybe Text
capacityProviderName = Maybe Text
a} :: Task)
task_startedBy :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_startedBy :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_startedBy = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
startedBy :: Maybe Text
$sel:startedBy:Task' :: Task -> Maybe Text
startedBy} -> Maybe Text
startedBy) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:startedBy:Task' :: Maybe Text
startedBy = Maybe Text
a} :: Task)
task_stoppedReason :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_stoppedReason :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_stoppedReason = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
stoppedReason :: Maybe Text
$sel:stoppedReason:Task' :: Task -> Maybe Text
stoppedReason} -> Maybe Text
stoppedReason) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:stoppedReason:Task' :: Maybe Text
stoppedReason = Maybe Text
a} :: Task)
task_connectivity :: Lens.Lens' Task (Prelude.Maybe Connectivity)
task_connectivity :: (Maybe Connectivity -> f (Maybe Connectivity)) -> Task -> f Task
task_connectivity = (Task -> Maybe Connectivity)
-> (Task -> Maybe Connectivity -> Task)
-> Lens Task Task (Maybe Connectivity) (Maybe Connectivity)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Connectivity
connectivity :: Maybe Connectivity
$sel:connectivity:Task' :: Task -> Maybe Connectivity
connectivity} -> Maybe Connectivity
connectivity) (\s :: Task
s@Task' {} Maybe Connectivity
a -> Task
s {$sel:connectivity:Task' :: Maybe Connectivity
connectivity = Maybe Connectivity
a} :: Task)
task_stoppingAt :: Lens.Lens' Task (Prelude.Maybe Prelude.UTCTime)
task_stoppingAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Task -> f Task
task_stoppingAt = (Task -> Maybe POSIX)
-> (Task -> Maybe POSIX -> Task)
-> Lens Task Task (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe POSIX
stoppingAt :: Maybe POSIX
$sel:stoppingAt:Task' :: Task -> Maybe POSIX
stoppingAt} -> Maybe POSIX
stoppingAt) (\s :: Task
s@Task' {} Maybe POSIX
a -> Task
s {$sel:stoppingAt:Task' :: Maybe POSIX
stoppingAt = Maybe POSIX
a} :: Task) ((Maybe POSIX -> f (Maybe POSIX)) -> Task -> f Task)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Task
-> f Task
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
task_launchType :: Lens.Lens' Task (Prelude.Maybe LaunchType)
task_launchType :: (Maybe LaunchType -> f (Maybe LaunchType)) -> Task -> f Task
task_launchType = (Task -> Maybe LaunchType)
-> (Task -> Maybe LaunchType -> Task)
-> Lens Task Task (Maybe LaunchType) (Maybe LaunchType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe LaunchType
launchType :: Maybe LaunchType
$sel:launchType:Task' :: Task -> Maybe LaunchType
launchType} -> Maybe LaunchType
launchType) (\s :: Task
s@Task' {} Maybe LaunchType
a -> Task
s {$sel:launchType:Task' :: Maybe LaunchType
launchType = Maybe LaunchType
a} :: Task)
task_taskDefinitionArn :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_taskDefinitionArn :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_taskDefinitionArn = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
taskDefinitionArn :: Maybe Text
$sel:taskDefinitionArn:Task' :: Task -> Maybe Text
taskDefinitionArn} -> Maybe Text
taskDefinitionArn) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:taskDefinitionArn:Task' :: Maybe Text
taskDefinitionArn = Maybe Text
a} :: Task)
task_healthStatus :: Lens.Lens' Task (Prelude.Maybe HealthStatus)
task_healthStatus :: (Maybe HealthStatus -> f (Maybe HealthStatus)) -> Task -> f Task
task_healthStatus = (Task -> Maybe HealthStatus)
-> (Task -> Maybe HealthStatus -> Task)
-> Lens Task Task (Maybe HealthStatus) (Maybe HealthStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe HealthStatus
healthStatus :: Maybe HealthStatus
$sel:healthStatus:Task' :: Task -> Maybe HealthStatus
healthStatus} -> Maybe HealthStatus
healthStatus) (\s :: Task
s@Task' {} Maybe HealthStatus
a -> Task
s {$sel:healthStatus:Task' :: Maybe HealthStatus
healthStatus = Maybe HealthStatus
a} :: Task)
task_connectivityAt :: Lens.Lens' Task (Prelude.Maybe Prelude.UTCTime)
task_connectivityAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Task -> f Task
task_connectivityAt = (Task -> Maybe POSIX)
-> (Task -> Maybe POSIX -> Task)
-> Lens Task Task (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe POSIX
connectivityAt :: Maybe POSIX
$sel:connectivityAt:Task' :: Task -> Maybe POSIX
connectivityAt} -> Maybe POSIX
connectivityAt) (\s :: Task
s@Task' {} Maybe POSIX
a -> Task
s {$sel:connectivityAt:Task' :: Maybe POSIX
connectivityAt = Maybe POSIX
a} :: Task) ((Maybe POSIX -> f (Maybe POSIX)) -> Task -> f Task)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Task
-> f Task
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
task_cpu :: Lens.Lens' Task (Prelude.Maybe Prelude.Text)
task_cpu :: (Maybe Text -> f (Maybe Text)) -> Task -> f Task
task_cpu = (Task -> Maybe Text)
-> (Task -> Maybe Text -> Task)
-> Lens Task Task (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Text
cpu :: Maybe Text
$sel:cpu:Task' :: Task -> Maybe Text
cpu} -> Maybe Text
cpu) (\s :: Task
s@Task' {} Maybe Text
a -> Task
s {$sel:cpu:Task' :: Maybe Text
cpu = Maybe Text
a} :: Task)
task_enableExecuteCommand :: Lens.Lens' Task (Prelude.Maybe Prelude.Bool)
task_enableExecuteCommand :: (Maybe Bool -> f (Maybe Bool)) -> Task -> f Task
task_enableExecuteCommand = (Task -> Maybe Bool)
-> (Task -> Maybe Bool -> Task)
-> Lens Task Task (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe Bool
enableExecuteCommand :: Maybe Bool
$sel:enableExecuteCommand:Task' :: Task -> Maybe Bool
enableExecuteCommand} -> Maybe Bool
enableExecuteCommand) (\s :: Task
s@Task' {} Maybe Bool
a -> Task
s {$sel:enableExecuteCommand:Task' :: Maybe Bool
enableExecuteCommand = Maybe Bool
a} :: Task)
task_pullStartedAt :: Lens.Lens' Task (Prelude.Maybe Prelude.UTCTime)
task_pullStartedAt :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Task -> f Task
task_pullStartedAt = (Task -> Maybe POSIX)
-> (Task -> Maybe POSIX -> Task)
-> Lens Task Task (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe POSIX
pullStartedAt :: Maybe POSIX
$sel:pullStartedAt:Task' :: Task -> Maybe POSIX
pullStartedAt} -> Maybe POSIX
pullStartedAt) (\s :: Task
s@Task' {} Maybe POSIX
a -> Task
s {$sel:pullStartedAt:Task' :: Maybe POSIX
pullStartedAt = Maybe POSIX
a} :: Task) ((Maybe POSIX -> f (Maybe POSIX)) -> Task -> f Task)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Task
-> f Task
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
task_tags :: Lens.Lens' Task (Prelude.Maybe [Tag])
task_tags :: (Maybe [Tag] -> f (Maybe [Tag])) -> Task -> f Task
task_tags = (Task -> Maybe [Tag])
-> (Task -> Maybe [Tag] -> Task)
-> Lens Task Task (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Task' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:Task' :: Task -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: Task
s@Task' {} Maybe [Tag]
a -> Task
s {$sel:tags:Task' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: Task) ((Maybe [Tag] -> f (Maybe [Tag])) -> Task -> f Task)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> Task
-> f Task
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.FromJSON Task where
parseJSON :: Value -> Parser Task
parseJSON =
String -> (Object -> Parser Task) -> Value -> Parser Task
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Task"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe TaskOverride
-> Maybe [InferenceAccelerator]
-> Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task
Task'
(Maybe POSIX
-> Maybe Text
-> Maybe TaskOverride
-> Maybe [InferenceAccelerator]
-> Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe TaskOverride
-> Maybe [InferenceAccelerator]
-> Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"stoppedAt")
Parser
(Maybe Text
-> Maybe TaskOverride
-> Maybe [InferenceAccelerator]
-> Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe TaskOverride
-> Maybe [InferenceAccelerator]
-> Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"desiredStatus")
Parser
(Maybe TaskOverride
-> Maybe [InferenceAccelerator]
-> Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe TaskOverride)
-> Parser
(Maybe [InferenceAccelerator]
-> Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskOverride)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"overrides")
Parser
(Maybe [InferenceAccelerator]
-> Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe [InferenceAccelerator])
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [InferenceAccelerator]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"inferenceAccelerators"
Parser (Maybe (Maybe [InferenceAccelerator]))
-> Maybe [InferenceAccelerator]
-> Parser (Maybe [InferenceAccelerator])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [InferenceAccelerator]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Text
-> Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"clusterArn")
Parser
(Maybe Text
-> Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"group")
Parser
(Maybe [Attachment]
-> Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe [Attachment])
-> Parser
(Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Attachment]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"attachments" Parser (Maybe (Maybe [Attachment]))
-> Maybe [Attachment] -> Parser (Maybe [Attachment])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Attachment]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe POSIX
-> Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe POSIX)
-> Parser
(Maybe TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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 TaskStopCode
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe TaskStopCode)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe TaskStopCode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"stopCode")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"platformVersion")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"taskArn")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"containerInstanceArn")
Parser
(Maybe POSIX
-> Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe POSIX)
-> Parser
(Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"executionStoppedAt")
Parser
(Maybe EphemeralStorage
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe EphemeralStorage)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EphemeralStorage)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ephemeralStorage")
Parser
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"lastStatus")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"memory")
Parser
(Maybe POSIX
-> Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe POSIX)
-> Parser
(Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"pullStoppedAt")
Parser
(Maybe [Container]
-> Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe [Container])
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Container]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"containers" Parser (Maybe (Maybe [Container]))
-> Maybe [Container] -> Parser (Maybe [Container])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Container]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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 Text
-> Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"availabilityZone")
Parser
(Maybe [Attribute]
-> Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe [Attribute])
-> Parser
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Attribute]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"attributes" Parser (Maybe (Maybe [Attribute]))
-> Maybe [Attribute] -> Parser (Maybe [Attribute])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Attribute]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Integer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Integer)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"version")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"capacityProviderName")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"startedBy")
Parser
(Maybe Text
-> Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"stoppedReason")
Parser
(Maybe Connectivity
-> Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Connectivity)
-> Parser
(Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Connectivity)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"connectivity")
Parser
(Maybe POSIX
-> Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe POSIX)
-> Parser
(Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"stoppingAt")
Parser
(Maybe LaunchType
-> Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe LaunchType)
-> Parser
(Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LaunchType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"launchType")
Parser
(Maybe Text
-> Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe Text)
-> Parser
(Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
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
"taskDefinitionArn")
Parser
(Maybe HealthStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Bool
-> Maybe POSIX
-> Maybe [Tag]
-> Task)
-> Parser (Maybe HealthStatus)
-> Parser
(Maybe POSIX
-> Maybe Text -> Maybe Bool -> Maybe POSIX -> Maybe [Tag] -> Task)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe HealthStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"healthStatus")
Parser
(Maybe POSIX
-> Maybe Text -> Maybe Bool -> Maybe POSIX -> Maybe [Tag] -> Task)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text -> Maybe Bool -> Maybe POSIX -> Maybe [Tag] -> Task)
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
"connectivityAt")
Parser
(Maybe Text -> Maybe Bool -> Maybe POSIX -> Maybe [Tag] -> Task)
-> Parser (Maybe Text)
-> Parser (Maybe Bool -> Maybe POSIX -> Maybe [Tag] -> Task)
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
"cpu")
Parser (Maybe Bool -> Maybe POSIX -> Maybe [Tag] -> Task)
-> Parser (Maybe Bool)
-> Parser (Maybe POSIX -> Maybe [Tag] -> Task)
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
"enableExecuteCommand")
Parser (Maybe POSIX -> Maybe [Tag] -> Task)
-> Parser (Maybe POSIX) -> Parser (Maybe [Tag] -> Task)
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
"pullStartedAt")
Parser (Maybe [Tag] -> Task) -> Parser (Maybe [Tag]) -> Parser Task
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Tag]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"tags" Parser (Maybe (Maybe [Tag])) -> Maybe [Tag] -> Parser (Maybe [Tag])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Tag]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable Task
instance Prelude.NFData Task