{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.ECS.RunTask
(
RunTask (..),
newRunTask,
runTask_overrides,
runTask_group,
runTask_cluster,
runTask_propagateTags,
runTask_platformVersion,
runTask_enableECSManagedTags,
runTask_count,
runTask_referenceId,
runTask_placementConstraints,
runTask_placementStrategy,
runTask_startedBy,
runTask_launchType,
runTask_networkConfiguration,
runTask_capacityProviderStrategy,
runTask_enableExecuteCommand,
runTask_tags,
runTask_taskDefinition,
RunTaskResponse (..),
newRunTaskResponse,
runTaskResponse_failures,
runTaskResponse_tasks,
runTaskResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ECS.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data RunTask = RunTask'
{
RunTask -> Maybe TaskOverride
overrides :: Prelude.Maybe TaskOverride,
RunTask -> Maybe Text
group' :: Prelude.Maybe Prelude.Text,
RunTask -> Maybe Text
cluster :: Prelude.Maybe Prelude.Text,
RunTask -> Maybe PropagateTags
propagateTags :: Prelude.Maybe PropagateTags,
RunTask -> Maybe Text
platformVersion :: Prelude.Maybe Prelude.Text,
RunTask -> Maybe Bool
enableECSManagedTags :: Prelude.Maybe Prelude.Bool,
RunTask -> Maybe Int
count :: Prelude.Maybe Prelude.Int,
RunTask -> Maybe Text
referenceId :: Prelude.Maybe Prelude.Text,
RunTask -> Maybe [PlacementConstraint]
placementConstraints :: Prelude.Maybe [PlacementConstraint],
RunTask -> Maybe [PlacementStrategy]
placementStrategy :: Prelude.Maybe [PlacementStrategy],
RunTask -> Maybe Text
startedBy :: Prelude.Maybe Prelude.Text,
RunTask -> Maybe LaunchType
launchType :: Prelude.Maybe LaunchType,
RunTask -> Maybe NetworkConfiguration
networkConfiguration :: Prelude.Maybe NetworkConfiguration,
RunTask -> Maybe [CapacityProviderStrategyItem]
capacityProviderStrategy :: Prelude.Maybe [CapacityProviderStrategyItem],
RunTask -> Maybe Bool
enableExecuteCommand :: Prelude.Maybe Prelude.Bool,
RunTask -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
RunTask -> Text
taskDefinition :: Prelude.Text
}
deriving (RunTask -> RunTask -> Bool
(RunTask -> RunTask -> Bool)
-> (RunTask -> RunTask -> Bool) -> Eq RunTask
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RunTask -> RunTask -> Bool
$c/= :: RunTask -> RunTask -> Bool
== :: RunTask -> RunTask -> Bool
$c== :: RunTask -> RunTask -> Bool
Prelude.Eq, ReadPrec [RunTask]
ReadPrec RunTask
Int -> ReadS RunTask
ReadS [RunTask]
(Int -> ReadS RunTask)
-> ReadS [RunTask]
-> ReadPrec RunTask
-> ReadPrec [RunTask]
-> Read RunTask
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RunTask]
$creadListPrec :: ReadPrec [RunTask]
readPrec :: ReadPrec RunTask
$creadPrec :: ReadPrec RunTask
readList :: ReadS [RunTask]
$creadList :: ReadS [RunTask]
readsPrec :: Int -> ReadS RunTask
$creadsPrec :: Int -> ReadS RunTask
Prelude.Read, Int -> RunTask -> ShowS
[RunTask] -> ShowS
RunTask -> String
(Int -> RunTask -> ShowS)
-> (RunTask -> String) -> ([RunTask] -> ShowS) -> Show RunTask
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RunTask] -> ShowS
$cshowList :: [RunTask] -> ShowS
show :: RunTask -> String
$cshow :: RunTask -> String
showsPrec :: Int -> RunTask -> ShowS
$cshowsPrec :: Int -> RunTask -> ShowS
Prelude.Show, (forall x. RunTask -> Rep RunTask x)
-> (forall x. Rep RunTask x -> RunTask) -> Generic RunTask
forall x. Rep RunTask x -> RunTask
forall x. RunTask -> Rep RunTask x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RunTask x -> RunTask
$cfrom :: forall x. RunTask -> Rep RunTask x
Prelude.Generic)
newRunTask ::
Prelude.Text ->
RunTask
newRunTask :: Text -> RunTask
newRunTask Text
pTaskDefinition_ =
RunTask' :: Maybe TaskOverride
-> Maybe Text
-> Maybe Text
-> Maybe PropagateTags
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe [PlacementConstraint]
-> Maybe [PlacementStrategy]
-> Maybe Text
-> Maybe LaunchType
-> Maybe NetworkConfiguration
-> Maybe [CapacityProviderStrategyItem]
-> Maybe Bool
-> Maybe [Tag]
-> Text
-> RunTask
RunTask'
{ $sel:overrides:RunTask' :: Maybe TaskOverride
overrides = Maybe TaskOverride
forall a. Maybe a
Prelude.Nothing,
$sel:group':RunTask' :: Maybe Text
group' = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cluster:RunTask' :: Maybe Text
cluster = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:propagateTags:RunTask' :: Maybe PropagateTags
propagateTags = Maybe PropagateTags
forall a. Maybe a
Prelude.Nothing,
$sel:platformVersion:RunTask' :: Maybe Text
platformVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableECSManagedTags:RunTask' :: Maybe Bool
enableECSManagedTags = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:count:RunTask' :: Maybe Int
count = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:referenceId:RunTask' :: Maybe Text
referenceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:placementConstraints:RunTask' :: Maybe [PlacementConstraint]
placementConstraints = Maybe [PlacementConstraint]
forall a. Maybe a
Prelude.Nothing,
$sel:placementStrategy:RunTask' :: Maybe [PlacementStrategy]
placementStrategy = Maybe [PlacementStrategy]
forall a. Maybe a
Prelude.Nothing,
$sel:startedBy:RunTask' :: Maybe Text
startedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:launchType:RunTask' :: Maybe LaunchType
launchType = Maybe LaunchType
forall a. Maybe a
Prelude.Nothing,
$sel:networkConfiguration:RunTask' :: Maybe NetworkConfiguration
networkConfiguration = Maybe NetworkConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:capacityProviderStrategy:RunTask' :: Maybe [CapacityProviderStrategyItem]
capacityProviderStrategy = Maybe [CapacityProviderStrategyItem]
forall a. Maybe a
Prelude.Nothing,
$sel:enableExecuteCommand:RunTask' :: Maybe Bool
enableExecuteCommand = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:tags:RunTask' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:taskDefinition:RunTask' :: Text
taskDefinition = Text
pTaskDefinition_
}
runTask_overrides :: Lens.Lens' RunTask (Prelude.Maybe TaskOverride)
runTask_overrides :: (Maybe TaskOverride -> f (Maybe TaskOverride))
-> RunTask -> f RunTask
runTask_overrides = (RunTask -> Maybe TaskOverride)
-> (RunTask -> Maybe TaskOverride -> RunTask)
-> Lens RunTask RunTask (Maybe TaskOverride) (Maybe TaskOverride)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe TaskOverride
overrides :: Maybe TaskOverride
$sel:overrides:RunTask' :: RunTask -> Maybe TaskOverride
overrides} -> Maybe TaskOverride
overrides) (\s :: RunTask
s@RunTask' {} Maybe TaskOverride
a -> RunTask
s {$sel:overrides:RunTask' :: Maybe TaskOverride
overrides = Maybe TaskOverride
a} :: RunTask)
runTask_group :: Lens.Lens' RunTask (Prelude.Maybe Prelude.Text)
runTask_group :: (Maybe Text -> f (Maybe Text)) -> RunTask -> f RunTask
runTask_group = (RunTask -> Maybe Text)
-> (RunTask -> Maybe Text -> RunTask)
-> Lens RunTask RunTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe Text
group' :: Maybe Text
$sel:group':RunTask' :: RunTask -> Maybe Text
group'} -> Maybe Text
group') (\s :: RunTask
s@RunTask' {} Maybe Text
a -> RunTask
s {$sel:group':RunTask' :: Maybe Text
group' = Maybe Text
a} :: RunTask)
runTask_cluster :: Lens.Lens' RunTask (Prelude.Maybe Prelude.Text)
runTask_cluster :: (Maybe Text -> f (Maybe Text)) -> RunTask -> f RunTask
runTask_cluster = (RunTask -> Maybe Text)
-> (RunTask -> Maybe Text -> RunTask)
-> Lens RunTask RunTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe Text
cluster :: Maybe Text
$sel:cluster:RunTask' :: RunTask -> Maybe Text
cluster} -> Maybe Text
cluster) (\s :: RunTask
s@RunTask' {} Maybe Text
a -> RunTask
s {$sel:cluster:RunTask' :: Maybe Text
cluster = Maybe Text
a} :: RunTask)
runTask_propagateTags :: Lens.Lens' RunTask (Prelude.Maybe PropagateTags)
runTask_propagateTags :: (Maybe PropagateTags -> f (Maybe PropagateTags))
-> RunTask -> f RunTask
runTask_propagateTags = (RunTask -> Maybe PropagateTags)
-> (RunTask -> Maybe PropagateTags -> RunTask)
-> Lens RunTask RunTask (Maybe PropagateTags) (Maybe PropagateTags)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe PropagateTags
propagateTags :: Maybe PropagateTags
$sel:propagateTags:RunTask' :: RunTask -> Maybe PropagateTags
propagateTags} -> Maybe PropagateTags
propagateTags) (\s :: RunTask
s@RunTask' {} Maybe PropagateTags
a -> RunTask
s {$sel:propagateTags:RunTask' :: Maybe PropagateTags
propagateTags = Maybe PropagateTags
a} :: RunTask)
runTask_platformVersion :: Lens.Lens' RunTask (Prelude.Maybe Prelude.Text)
runTask_platformVersion :: (Maybe Text -> f (Maybe Text)) -> RunTask -> f RunTask
runTask_platformVersion = (RunTask -> Maybe Text)
-> (RunTask -> Maybe Text -> RunTask)
-> Lens RunTask RunTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe Text
platformVersion :: Maybe Text
$sel:platformVersion:RunTask' :: RunTask -> Maybe Text
platformVersion} -> Maybe Text
platformVersion) (\s :: RunTask
s@RunTask' {} Maybe Text
a -> RunTask
s {$sel:platformVersion:RunTask' :: Maybe Text
platformVersion = Maybe Text
a} :: RunTask)
runTask_enableECSManagedTags :: Lens.Lens' RunTask (Prelude.Maybe Prelude.Bool)
runTask_enableECSManagedTags :: (Maybe Bool -> f (Maybe Bool)) -> RunTask -> f RunTask
runTask_enableECSManagedTags = (RunTask -> Maybe Bool)
-> (RunTask -> Maybe Bool -> RunTask)
-> Lens RunTask RunTask (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe Bool
enableECSManagedTags :: Maybe Bool
$sel:enableECSManagedTags:RunTask' :: RunTask -> Maybe Bool
enableECSManagedTags} -> Maybe Bool
enableECSManagedTags) (\s :: RunTask
s@RunTask' {} Maybe Bool
a -> RunTask
s {$sel:enableECSManagedTags:RunTask' :: Maybe Bool
enableECSManagedTags = Maybe Bool
a} :: RunTask)
runTask_count :: Lens.Lens' RunTask (Prelude.Maybe Prelude.Int)
runTask_count :: (Maybe Int -> f (Maybe Int)) -> RunTask -> f RunTask
runTask_count = (RunTask -> Maybe Int)
-> (RunTask -> Maybe Int -> RunTask)
-> Lens RunTask RunTask (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe Int
count :: Maybe Int
$sel:count:RunTask' :: RunTask -> Maybe Int
count} -> Maybe Int
count) (\s :: RunTask
s@RunTask' {} Maybe Int
a -> RunTask
s {$sel:count:RunTask' :: Maybe Int
count = Maybe Int
a} :: RunTask)
runTask_referenceId :: Lens.Lens' RunTask (Prelude.Maybe Prelude.Text)
runTask_referenceId :: (Maybe Text -> f (Maybe Text)) -> RunTask -> f RunTask
runTask_referenceId = (RunTask -> Maybe Text)
-> (RunTask -> Maybe Text -> RunTask)
-> Lens RunTask RunTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe Text
referenceId :: Maybe Text
$sel:referenceId:RunTask' :: RunTask -> Maybe Text
referenceId} -> Maybe Text
referenceId) (\s :: RunTask
s@RunTask' {} Maybe Text
a -> RunTask
s {$sel:referenceId:RunTask' :: Maybe Text
referenceId = Maybe Text
a} :: RunTask)
runTask_placementConstraints :: Lens.Lens' RunTask (Prelude.Maybe [PlacementConstraint])
runTask_placementConstraints :: (Maybe [PlacementConstraint] -> f (Maybe [PlacementConstraint]))
-> RunTask -> f RunTask
runTask_placementConstraints = (RunTask -> Maybe [PlacementConstraint])
-> (RunTask -> Maybe [PlacementConstraint] -> RunTask)
-> Lens
RunTask
RunTask
(Maybe [PlacementConstraint])
(Maybe [PlacementConstraint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe [PlacementConstraint]
placementConstraints :: Maybe [PlacementConstraint]
$sel:placementConstraints:RunTask' :: RunTask -> Maybe [PlacementConstraint]
placementConstraints} -> Maybe [PlacementConstraint]
placementConstraints) (\s :: RunTask
s@RunTask' {} Maybe [PlacementConstraint]
a -> RunTask
s {$sel:placementConstraints:RunTask' :: Maybe [PlacementConstraint]
placementConstraints = Maybe [PlacementConstraint]
a} :: RunTask) ((Maybe [PlacementConstraint] -> f (Maybe [PlacementConstraint]))
-> RunTask -> f RunTask)
-> ((Maybe [PlacementConstraint]
-> f (Maybe [PlacementConstraint]))
-> Maybe [PlacementConstraint] -> f (Maybe [PlacementConstraint]))
-> (Maybe [PlacementConstraint] -> f (Maybe [PlacementConstraint]))
-> RunTask
-> f RunTask
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PlacementConstraint]
[PlacementConstraint]
[PlacementConstraint]
[PlacementConstraint]
-> Iso
(Maybe [PlacementConstraint])
(Maybe [PlacementConstraint])
(Maybe [PlacementConstraint])
(Maybe [PlacementConstraint])
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
[PlacementConstraint]
[PlacementConstraint]
[PlacementConstraint]
[PlacementConstraint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
runTask_placementStrategy :: Lens.Lens' RunTask (Prelude.Maybe [PlacementStrategy])
runTask_placementStrategy :: (Maybe [PlacementStrategy] -> f (Maybe [PlacementStrategy]))
-> RunTask -> f RunTask
runTask_placementStrategy = (RunTask -> Maybe [PlacementStrategy])
-> (RunTask -> Maybe [PlacementStrategy] -> RunTask)
-> Lens
RunTask
RunTask
(Maybe [PlacementStrategy])
(Maybe [PlacementStrategy])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe [PlacementStrategy]
placementStrategy :: Maybe [PlacementStrategy]
$sel:placementStrategy:RunTask' :: RunTask -> Maybe [PlacementStrategy]
placementStrategy} -> Maybe [PlacementStrategy]
placementStrategy) (\s :: RunTask
s@RunTask' {} Maybe [PlacementStrategy]
a -> RunTask
s {$sel:placementStrategy:RunTask' :: Maybe [PlacementStrategy]
placementStrategy = Maybe [PlacementStrategy]
a} :: RunTask) ((Maybe [PlacementStrategy] -> f (Maybe [PlacementStrategy]))
-> RunTask -> f RunTask)
-> ((Maybe [PlacementStrategy] -> f (Maybe [PlacementStrategy]))
-> Maybe [PlacementStrategy] -> f (Maybe [PlacementStrategy]))
-> (Maybe [PlacementStrategy] -> f (Maybe [PlacementStrategy]))
-> RunTask
-> f RunTask
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[PlacementStrategy]
[PlacementStrategy]
[PlacementStrategy]
[PlacementStrategy]
-> Iso
(Maybe [PlacementStrategy])
(Maybe [PlacementStrategy])
(Maybe [PlacementStrategy])
(Maybe [PlacementStrategy])
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
[PlacementStrategy]
[PlacementStrategy]
[PlacementStrategy]
[PlacementStrategy]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
runTask_startedBy :: Lens.Lens' RunTask (Prelude.Maybe Prelude.Text)
runTask_startedBy :: (Maybe Text -> f (Maybe Text)) -> RunTask -> f RunTask
runTask_startedBy = (RunTask -> Maybe Text)
-> (RunTask -> Maybe Text -> RunTask)
-> Lens RunTask RunTask (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe Text
startedBy :: Maybe Text
$sel:startedBy:RunTask' :: RunTask -> Maybe Text
startedBy} -> Maybe Text
startedBy) (\s :: RunTask
s@RunTask' {} Maybe Text
a -> RunTask
s {$sel:startedBy:RunTask' :: Maybe Text
startedBy = Maybe Text
a} :: RunTask)
runTask_launchType :: Lens.Lens' RunTask (Prelude.Maybe LaunchType)
runTask_launchType :: (Maybe LaunchType -> f (Maybe LaunchType)) -> RunTask -> f RunTask
runTask_launchType = (RunTask -> Maybe LaunchType)
-> (RunTask -> Maybe LaunchType -> RunTask)
-> Lens RunTask RunTask (Maybe LaunchType) (Maybe LaunchType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe LaunchType
launchType :: Maybe LaunchType
$sel:launchType:RunTask' :: RunTask -> Maybe LaunchType
launchType} -> Maybe LaunchType
launchType) (\s :: RunTask
s@RunTask' {} Maybe LaunchType
a -> RunTask
s {$sel:launchType:RunTask' :: Maybe LaunchType
launchType = Maybe LaunchType
a} :: RunTask)
runTask_networkConfiguration :: Lens.Lens' RunTask (Prelude.Maybe NetworkConfiguration)
runTask_networkConfiguration :: (Maybe NetworkConfiguration -> f (Maybe NetworkConfiguration))
-> RunTask -> f RunTask
runTask_networkConfiguration = (RunTask -> Maybe NetworkConfiguration)
-> (RunTask -> Maybe NetworkConfiguration -> RunTask)
-> Lens
RunTask
RunTask
(Maybe NetworkConfiguration)
(Maybe NetworkConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe NetworkConfiguration
networkConfiguration :: Maybe NetworkConfiguration
$sel:networkConfiguration:RunTask' :: RunTask -> Maybe NetworkConfiguration
networkConfiguration} -> Maybe NetworkConfiguration
networkConfiguration) (\s :: RunTask
s@RunTask' {} Maybe NetworkConfiguration
a -> RunTask
s {$sel:networkConfiguration:RunTask' :: Maybe NetworkConfiguration
networkConfiguration = Maybe NetworkConfiguration
a} :: RunTask)
runTask_capacityProviderStrategy :: Lens.Lens' RunTask (Prelude.Maybe [CapacityProviderStrategyItem])
runTask_capacityProviderStrategy :: (Maybe [CapacityProviderStrategyItem]
-> f (Maybe [CapacityProviderStrategyItem]))
-> RunTask -> f RunTask
runTask_capacityProviderStrategy = (RunTask -> Maybe [CapacityProviderStrategyItem])
-> (RunTask -> Maybe [CapacityProviderStrategyItem] -> RunTask)
-> Lens
RunTask
RunTask
(Maybe [CapacityProviderStrategyItem])
(Maybe [CapacityProviderStrategyItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe [CapacityProviderStrategyItem]
capacityProviderStrategy :: Maybe [CapacityProviderStrategyItem]
$sel:capacityProviderStrategy:RunTask' :: RunTask -> Maybe [CapacityProviderStrategyItem]
capacityProviderStrategy} -> Maybe [CapacityProviderStrategyItem]
capacityProviderStrategy) (\s :: RunTask
s@RunTask' {} Maybe [CapacityProviderStrategyItem]
a -> RunTask
s {$sel:capacityProviderStrategy:RunTask' :: Maybe [CapacityProviderStrategyItem]
capacityProviderStrategy = Maybe [CapacityProviderStrategyItem]
a} :: RunTask) ((Maybe [CapacityProviderStrategyItem]
-> f (Maybe [CapacityProviderStrategyItem]))
-> RunTask -> f RunTask)
-> ((Maybe [CapacityProviderStrategyItem]
-> f (Maybe [CapacityProviderStrategyItem]))
-> Maybe [CapacityProviderStrategyItem]
-> f (Maybe [CapacityProviderStrategyItem]))
-> (Maybe [CapacityProviderStrategyItem]
-> f (Maybe [CapacityProviderStrategyItem]))
-> RunTask
-> f RunTask
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[CapacityProviderStrategyItem]
[CapacityProviderStrategyItem]
[CapacityProviderStrategyItem]
[CapacityProviderStrategyItem]
-> Iso
(Maybe [CapacityProviderStrategyItem])
(Maybe [CapacityProviderStrategyItem])
(Maybe [CapacityProviderStrategyItem])
(Maybe [CapacityProviderStrategyItem])
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
[CapacityProviderStrategyItem]
[CapacityProviderStrategyItem]
[CapacityProviderStrategyItem]
[CapacityProviderStrategyItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
runTask_enableExecuteCommand :: Lens.Lens' RunTask (Prelude.Maybe Prelude.Bool)
runTask_enableExecuteCommand :: (Maybe Bool -> f (Maybe Bool)) -> RunTask -> f RunTask
runTask_enableExecuteCommand = (RunTask -> Maybe Bool)
-> (RunTask -> Maybe Bool -> RunTask)
-> Lens RunTask RunTask (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe Bool
enableExecuteCommand :: Maybe Bool
$sel:enableExecuteCommand:RunTask' :: RunTask -> Maybe Bool
enableExecuteCommand} -> Maybe Bool
enableExecuteCommand) (\s :: RunTask
s@RunTask' {} Maybe Bool
a -> RunTask
s {$sel:enableExecuteCommand:RunTask' :: Maybe Bool
enableExecuteCommand = Maybe Bool
a} :: RunTask)
runTask_tags :: Lens.Lens' RunTask (Prelude.Maybe [Tag])
runTask_tags :: (Maybe [Tag] -> f (Maybe [Tag])) -> RunTask -> f RunTask
runTask_tags = (RunTask -> Maybe [Tag])
-> (RunTask -> Maybe [Tag] -> RunTask)
-> Lens RunTask RunTask (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:RunTask' :: RunTask -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: RunTask
s@RunTask' {} Maybe [Tag]
a -> RunTask
s {$sel:tags:RunTask' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: RunTask) ((Maybe [Tag] -> f (Maybe [Tag])) -> RunTask -> f RunTask)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> RunTask
-> f RunTask
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
runTask_taskDefinition :: Lens.Lens' RunTask Prelude.Text
runTask_taskDefinition :: (Text -> f Text) -> RunTask -> f RunTask
runTask_taskDefinition = (RunTask -> Text)
-> (RunTask -> Text -> RunTask) -> Lens RunTask RunTask Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTask' {Text
taskDefinition :: Text
$sel:taskDefinition:RunTask' :: RunTask -> Text
taskDefinition} -> Text
taskDefinition) (\s :: RunTask
s@RunTask' {} Text
a -> RunTask
s {$sel:taskDefinition:RunTask' :: Text
taskDefinition = Text
a} :: RunTask)
instance Core.AWSRequest RunTask where
type AWSResponse RunTask = RunTaskResponse
request :: RunTask -> Request RunTask
request = Service -> RunTask -> Request RunTask
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy RunTask
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse RunTask)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse RunTask))
-> Logger
-> Service
-> Proxy RunTask
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse RunTask)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [Failure] -> Maybe [Task] -> Int -> RunTaskResponse
RunTaskResponse'
(Maybe [Failure] -> Maybe [Task] -> Int -> RunTaskResponse)
-> Either String (Maybe [Failure])
-> Either String (Maybe [Task] -> Int -> RunTaskResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Failure]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"failures" Either String (Maybe (Maybe [Failure]))
-> Maybe [Failure] -> Either String (Maybe [Failure])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Failure]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe [Task] -> Int -> RunTaskResponse)
-> Either String (Maybe [Task])
-> Either String (Int -> RunTaskResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Task]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tasks" Either String (Maybe (Maybe [Task]))
-> Maybe [Task] -> Either String (Maybe [Task])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Task]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> RunTaskResponse)
-> Either String Int -> Either String RunTaskResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable RunTask
instance Prelude.NFData RunTask
instance Core.ToHeaders RunTask where
toHeaders :: RunTask -> ResponseHeaders
toHeaders =
ResponseHeaders -> RunTask -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonEC2ContainerServiceV20141113.RunTask" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON RunTask where
toJSON :: RunTask -> Value
toJSON RunTask' {Maybe Bool
Maybe Int
Maybe [CapacityProviderStrategyItem]
Maybe [PlacementConstraint]
Maybe [PlacementStrategy]
Maybe [Tag]
Maybe Text
Maybe LaunchType
Maybe NetworkConfiguration
Maybe PropagateTags
Maybe TaskOverride
Text
taskDefinition :: Text
tags :: Maybe [Tag]
enableExecuteCommand :: Maybe Bool
capacityProviderStrategy :: Maybe [CapacityProviderStrategyItem]
networkConfiguration :: Maybe NetworkConfiguration
launchType :: Maybe LaunchType
startedBy :: Maybe Text
placementStrategy :: Maybe [PlacementStrategy]
placementConstraints :: Maybe [PlacementConstraint]
referenceId :: Maybe Text
count :: Maybe Int
enableECSManagedTags :: Maybe Bool
platformVersion :: Maybe Text
propagateTags :: Maybe PropagateTags
cluster :: Maybe Text
group' :: Maybe Text
overrides :: Maybe TaskOverride
$sel:taskDefinition:RunTask' :: RunTask -> Text
$sel:tags:RunTask' :: RunTask -> Maybe [Tag]
$sel:enableExecuteCommand:RunTask' :: RunTask -> Maybe Bool
$sel:capacityProviderStrategy:RunTask' :: RunTask -> Maybe [CapacityProviderStrategyItem]
$sel:networkConfiguration:RunTask' :: RunTask -> Maybe NetworkConfiguration
$sel:launchType:RunTask' :: RunTask -> Maybe LaunchType
$sel:startedBy:RunTask' :: RunTask -> Maybe Text
$sel:placementStrategy:RunTask' :: RunTask -> Maybe [PlacementStrategy]
$sel:placementConstraints:RunTask' :: RunTask -> Maybe [PlacementConstraint]
$sel:referenceId:RunTask' :: RunTask -> Maybe Text
$sel:count:RunTask' :: RunTask -> Maybe Int
$sel:enableECSManagedTags:RunTask' :: RunTask -> Maybe Bool
$sel:platformVersion:RunTask' :: RunTask -> Maybe Text
$sel:propagateTags:RunTask' :: RunTask -> Maybe PropagateTags
$sel:cluster:RunTask' :: RunTask -> Maybe Text
$sel:group':RunTask' :: RunTask -> Maybe Text
$sel:overrides:RunTask' :: RunTask -> Maybe TaskOverride
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"overrides" Text -> TaskOverride -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (TaskOverride -> Pair) -> Maybe TaskOverride -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TaskOverride
overrides,
(Text
"group" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
group',
(Text
"cluster" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
cluster,
(Text
"propagateTags" Text -> PropagateTags -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (PropagateTags -> Pair) -> Maybe PropagateTags -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PropagateTags
propagateTags,
(Text
"platformVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
platformVersion,
(Text
"enableECSManagedTags" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableECSManagedTags,
(Text
"count" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
count,
(Text
"referenceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
referenceId,
(Text
"placementConstraints" Text -> [PlacementConstraint] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([PlacementConstraint] -> Pair)
-> Maybe [PlacementConstraint] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PlacementConstraint]
placementConstraints,
(Text
"placementStrategy" Text -> [PlacementStrategy] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([PlacementStrategy] -> Pair)
-> Maybe [PlacementStrategy] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PlacementStrategy]
placementStrategy,
(Text
"startedBy" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
startedBy,
(Text
"launchType" Text -> LaunchType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (LaunchType -> Pair) -> Maybe LaunchType -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LaunchType
launchType,
(Text
"networkConfiguration" Text -> NetworkConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NetworkConfiguration -> Pair)
-> Maybe NetworkConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NetworkConfiguration
networkConfiguration,
(Text
"capacityProviderStrategy" Text -> [CapacityProviderStrategyItem] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([CapacityProviderStrategyItem] -> Pair)
-> Maybe [CapacityProviderStrategyItem] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CapacityProviderStrategyItem]
capacityProviderStrategy,
(Text
"enableExecuteCommand" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableExecuteCommand,
(Text
"tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"taskDefinition" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
taskDefinition)
]
)
instance Core.ToPath RunTask where
toPath :: RunTask -> ByteString
toPath = ByteString -> RunTask -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery RunTask where
toQuery :: RunTask -> QueryString
toQuery = QueryString -> RunTask -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data RunTaskResponse = RunTaskResponse'
{
RunTaskResponse -> Maybe [Failure]
failures :: Prelude.Maybe [Failure],
RunTaskResponse -> Maybe [Task]
tasks :: Prelude.Maybe [Task],
RunTaskResponse -> Int
httpStatus :: Prelude.Int
}
deriving (RunTaskResponse -> RunTaskResponse -> Bool
(RunTaskResponse -> RunTaskResponse -> Bool)
-> (RunTaskResponse -> RunTaskResponse -> Bool)
-> Eq RunTaskResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RunTaskResponse -> RunTaskResponse -> Bool
$c/= :: RunTaskResponse -> RunTaskResponse -> Bool
== :: RunTaskResponse -> RunTaskResponse -> Bool
$c== :: RunTaskResponse -> RunTaskResponse -> Bool
Prelude.Eq, ReadPrec [RunTaskResponse]
ReadPrec RunTaskResponse
Int -> ReadS RunTaskResponse
ReadS [RunTaskResponse]
(Int -> ReadS RunTaskResponse)
-> ReadS [RunTaskResponse]
-> ReadPrec RunTaskResponse
-> ReadPrec [RunTaskResponse]
-> Read RunTaskResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RunTaskResponse]
$creadListPrec :: ReadPrec [RunTaskResponse]
readPrec :: ReadPrec RunTaskResponse
$creadPrec :: ReadPrec RunTaskResponse
readList :: ReadS [RunTaskResponse]
$creadList :: ReadS [RunTaskResponse]
readsPrec :: Int -> ReadS RunTaskResponse
$creadsPrec :: Int -> ReadS RunTaskResponse
Prelude.Read, Int -> RunTaskResponse -> ShowS
[RunTaskResponse] -> ShowS
RunTaskResponse -> String
(Int -> RunTaskResponse -> ShowS)
-> (RunTaskResponse -> String)
-> ([RunTaskResponse] -> ShowS)
-> Show RunTaskResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RunTaskResponse] -> ShowS
$cshowList :: [RunTaskResponse] -> ShowS
show :: RunTaskResponse -> String
$cshow :: RunTaskResponse -> String
showsPrec :: Int -> RunTaskResponse -> ShowS
$cshowsPrec :: Int -> RunTaskResponse -> ShowS
Prelude.Show, (forall x. RunTaskResponse -> Rep RunTaskResponse x)
-> (forall x. Rep RunTaskResponse x -> RunTaskResponse)
-> Generic RunTaskResponse
forall x. Rep RunTaskResponse x -> RunTaskResponse
forall x. RunTaskResponse -> Rep RunTaskResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RunTaskResponse x -> RunTaskResponse
$cfrom :: forall x. RunTaskResponse -> Rep RunTaskResponse x
Prelude.Generic)
newRunTaskResponse ::
Prelude.Int ->
RunTaskResponse
newRunTaskResponse :: Int -> RunTaskResponse
newRunTaskResponse Int
pHttpStatus_ =
RunTaskResponse' :: Maybe [Failure] -> Maybe [Task] -> Int -> RunTaskResponse
RunTaskResponse'
{ $sel:failures:RunTaskResponse' :: Maybe [Failure]
failures = Maybe [Failure]
forall a. Maybe a
Prelude.Nothing,
$sel:tasks:RunTaskResponse' :: Maybe [Task]
tasks = Maybe [Task]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:RunTaskResponse' :: Int
httpStatus = Int
pHttpStatus_
}
runTaskResponse_failures :: Lens.Lens' RunTaskResponse (Prelude.Maybe [Failure])
runTaskResponse_failures :: (Maybe [Failure] -> f (Maybe [Failure]))
-> RunTaskResponse -> f RunTaskResponse
runTaskResponse_failures = (RunTaskResponse -> Maybe [Failure])
-> (RunTaskResponse -> Maybe [Failure] -> RunTaskResponse)
-> Lens
RunTaskResponse RunTaskResponse (Maybe [Failure]) (Maybe [Failure])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTaskResponse' {Maybe [Failure]
failures :: Maybe [Failure]
$sel:failures:RunTaskResponse' :: RunTaskResponse -> Maybe [Failure]
failures} -> Maybe [Failure]
failures) (\s :: RunTaskResponse
s@RunTaskResponse' {} Maybe [Failure]
a -> RunTaskResponse
s {$sel:failures:RunTaskResponse' :: Maybe [Failure]
failures = Maybe [Failure]
a} :: RunTaskResponse) ((Maybe [Failure] -> f (Maybe [Failure]))
-> RunTaskResponse -> f RunTaskResponse)
-> ((Maybe [Failure] -> f (Maybe [Failure]))
-> Maybe [Failure] -> f (Maybe [Failure]))
-> (Maybe [Failure] -> f (Maybe [Failure]))
-> RunTaskResponse
-> f RunTaskResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Failure] [Failure] [Failure] [Failure]
-> Iso
(Maybe [Failure])
(Maybe [Failure])
(Maybe [Failure])
(Maybe [Failure])
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 [Failure] [Failure] [Failure] [Failure]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
runTaskResponse_tasks :: Lens.Lens' RunTaskResponse (Prelude.Maybe [Task])
runTaskResponse_tasks :: (Maybe [Task] -> f (Maybe [Task]))
-> RunTaskResponse -> f RunTaskResponse
runTaskResponse_tasks = (RunTaskResponse -> Maybe [Task])
-> (RunTaskResponse -> Maybe [Task] -> RunTaskResponse)
-> Lens
RunTaskResponse RunTaskResponse (Maybe [Task]) (Maybe [Task])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTaskResponse' {Maybe [Task]
tasks :: Maybe [Task]
$sel:tasks:RunTaskResponse' :: RunTaskResponse -> Maybe [Task]
tasks} -> Maybe [Task]
tasks) (\s :: RunTaskResponse
s@RunTaskResponse' {} Maybe [Task]
a -> RunTaskResponse
s {$sel:tasks:RunTaskResponse' :: Maybe [Task]
tasks = Maybe [Task]
a} :: RunTaskResponse) ((Maybe [Task] -> f (Maybe [Task]))
-> RunTaskResponse -> f RunTaskResponse)
-> ((Maybe [Task] -> f (Maybe [Task]))
-> Maybe [Task] -> f (Maybe [Task]))
-> (Maybe [Task] -> f (Maybe [Task]))
-> RunTaskResponse
-> f RunTaskResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Task] [Task] [Task] [Task]
-> Iso (Maybe [Task]) (Maybe [Task]) (Maybe [Task]) (Maybe [Task])
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 [Task] [Task] [Task] [Task]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
runTaskResponse_httpStatus :: Lens.Lens' RunTaskResponse Prelude.Int
runTaskResponse_httpStatus :: (Int -> f Int) -> RunTaskResponse -> f RunTaskResponse
runTaskResponse_httpStatus = (RunTaskResponse -> Int)
-> (RunTaskResponse -> Int -> RunTaskResponse)
-> Lens RunTaskResponse RunTaskResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RunTaskResponse' {Int
httpStatus :: Int
$sel:httpStatus:RunTaskResponse' :: RunTaskResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RunTaskResponse
s@RunTaskResponse' {} Int
a -> RunTaskResponse
s {$sel:httpStatus:RunTaskResponse' :: Int
httpStatus = Int
a} :: RunTaskResponse)
instance Prelude.NFData RunTaskResponse