{-# 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.ContainerDefinition where
import qualified Amazonka.Core as Core
import Amazonka.ECS.Types.ContainerDependency
import Amazonka.ECS.Types.EnvironmentFile
import Amazonka.ECS.Types.FirelensConfiguration
import Amazonka.ECS.Types.HealthCheck
import Amazonka.ECS.Types.HostEntry
import Amazonka.ECS.Types.KeyValuePair
import Amazonka.ECS.Types.LinuxParameters
import Amazonka.ECS.Types.LogConfiguration
import Amazonka.ECS.Types.MountPoint
import Amazonka.ECS.Types.PortMapping
import Amazonka.ECS.Types.RepositoryCredentials
import Amazonka.ECS.Types.ResourceRequirement
import Amazonka.ECS.Types.Secret
import Amazonka.ECS.Types.SystemControl
import Amazonka.ECS.Types.Ulimit
import Amazonka.ECS.Types.VolumeFrom
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ContainerDefinition = ContainerDefinition'
{
ContainerDefinition -> Maybe Text
image :: Prelude.Maybe Prelude.Text,
ContainerDefinition -> Maybe [Text]
command :: Prelude.Maybe [Prelude.Text],
ContainerDefinition -> Maybe Text
hostname :: Prelude.Maybe Prelude.Text,
ContainerDefinition -> Maybe RepositoryCredentials
repositoryCredentials :: Prelude.Maybe RepositoryCredentials,
ContainerDefinition -> Maybe [Text]
dockerSecurityOptions :: Prelude.Maybe [Prelude.Text],
ContainerDefinition -> Maybe HealthCheck
healthCheck :: Prelude.Maybe HealthCheck,
ContainerDefinition -> Maybe Bool
disableNetworking :: Prelude.Maybe Prelude.Bool,
ContainerDefinition -> Maybe [Secret]
secrets :: Prelude.Maybe [Secret],
ContainerDefinition -> Maybe [VolumeFrom]
volumesFrom :: Prelude.Maybe [VolumeFrom],
ContainerDefinition -> Maybe [KeyValuePair]
environment :: Prelude.Maybe [KeyValuePair],
ContainerDefinition -> Maybe [EnvironmentFile]
environmentFiles :: Prelude.Maybe [EnvironmentFile],
ContainerDefinition -> Maybe [Text]
entryPoint :: Prelude.Maybe [Prelude.Text],
ContainerDefinition -> Maybe Text
workingDirectory :: Prelude.Maybe Prelude.Text,
ContainerDefinition -> Maybe [Ulimit]
ulimits :: Prelude.Maybe [Ulimit],
ContainerDefinition -> Maybe Int
stopTimeout :: Prelude.Maybe Prelude.Int,
ContainerDefinition -> Maybe Bool
privileged :: Prelude.Maybe Prelude.Bool,
ContainerDefinition -> Maybe [PortMapping]
portMappings :: Prelude.Maybe [PortMapping],
ContainerDefinition -> Maybe [ResourceRequirement]
resourceRequirements :: Prelude.Maybe [ResourceRequirement],
ContainerDefinition -> Maybe (HashMap Text Text)
dockerLabels :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
:: Prelude.Maybe [HostEntry],
ContainerDefinition -> Maybe Int
memory :: Prelude.Maybe Prelude.Int,
ContainerDefinition -> Maybe [SystemControl]
systemControls :: Prelude.Maybe [SystemControl],
ContainerDefinition -> Maybe Text
user :: Prelude.Maybe Prelude.Text,
ContainerDefinition -> Maybe FirelensConfiguration
firelensConfiguration :: Prelude.Maybe FirelensConfiguration,
ContainerDefinition -> Maybe [Text]
dnsSearchDomains :: Prelude.Maybe [Prelude.Text],
ContainerDefinition -> Maybe LogConfiguration
logConfiguration :: Prelude.Maybe LogConfiguration,
ContainerDefinition -> Maybe LinuxParameters
linuxParameters :: Prelude.Maybe LinuxParameters,
ContainerDefinition -> Maybe Bool
pseudoTerminal :: Prelude.Maybe Prelude.Bool,
ContainerDefinition -> Maybe [ContainerDependency]
dependsOn :: Prelude.Maybe [ContainerDependency],
ContainerDefinition -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ContainerDefinition -> Maybe [Text]
dnsServers :: Prelude.Maybe [Prelude.Text],
ContainerDefinition -> Maybe [MountPoint]
mountPoints :: Prelude.Maybe [MountPoint],
ContainerDefinition -> Maybe Bool
interactive :: Prelude.Maybe Prelude.Bool,
ContainerDefinition -> Maybe Int
startTimeout :: Prelude.Maybe Prelude.Int,
ContainerDefinition -> Maybe [Text]
links :: Prelude.Maybe [Prelude.Text],
ContainerDefinition -> Maybe Bool
readonlyRootFilesystem :: Prelude.Maybe Prelude.Bool,
ContainerDefinition -> Maybe Bool
essential :: Prelude.Maybe Prelude.Bool,
ContainerDefinition -> Maybe Int
cpu :: Prelude.Maybe Prelude.Int,
ContainerDefinition -> Maybe Int
memoryReservation :: Prelude.Maybe Prelude.Int
}
deriving (ContainerDefinition -> ContainerDefinition -> Bool
(ContainerDefinition -> ContainerDefinition -> Bool)
-> (ContainerDefinition -> ContainerDefinition -> Bool)
-> Eq ContainerDefinition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ContainerDefinition -> ContainerDefinition -> Bool
$c/= :: ContainerDefinition -> ContainerDefinition -> Bool
== :: ContainerDefinition -> ContainerDefinition -> Bool
$c== :: ContainerDefinition -> ContainerDefinition -> Bool
Prelude.Eq, ReadPrec [ContainerDefinition]
ReadPrec ContainerDefinition
Int -> ReadS ContainerDefinition
ReadS [ContainerDefinition]
(Int -> ReadS ContainerDefinition)
-> ReadS [ContainerDefinition]
-> ReadPrec ContainerDefinition
-> ReadPrec [ContainerDefinition]
-> Read ContainerDefinition
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ContainerDefinition]
$creadListPrec :: ReadPrec [ContainerDefinition]
readPrec :: ReadPrec ContainerDefinition
$creadPrec :: ReadPrec ContainerDefinition
readList :: ReadS [ContainerDefinition]
$creadList :: ReadS [ContainerDefinition]
readsPrec :: Int -> ReadS ContainerDefinition
$creadsPrec :: Int -> ReadS ContainerDefinition
Prelude.Read, Int -> ContainerDefinition -> ShowS
[ContainerDefinition] -> ShowS
ContainerDefinition -> String
(Int -> ContainerDefinition -> ShowS)
-> (ContainerDefinition -> String)
-> ([ContainerDefinition] -> ShowS)
-> Show ContainerDefinition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ContainerDefinition] -> ShowS
$cshowList :: [ContainerDefinition] -> ShowS
show :: ContainerDefinition -> String
$cshow :: ContainerDefinition -> String
showsPrec :: Int -> ContainerDefinition -> ShowS
$cshowsPrec :: Int -> ContainerDefinition -> ShowS
Prelude.Show, (forall x. ContainerDefinition -> Rep ContainerDefinition x)
-> (forall x. Rep ContainerDefinition x -> ContainerDefinition)
-> Generic ContainerDefinition
forall x. Rep ContainerDefinition x -> ContainerDefinition
forall x. ContainerDefinition -> Rep ContainerDefinition x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ContainerDefinition x -> ContainerDefinition
$cfrom :: forall x. ContainerDefinition -> Rep ContainerDefinition x
Prelude.Generic)
newContainerDefinition ::
ContainerDefinition
newContainerDefinition :: ContainerDefinition
newContainerDefinition =
ContainerDefinition' :: Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe RepositoryCredentials
-> Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition
ContainerDefinition'
{ $sel:image:ContainerDefinition' :: Maybe Text
image = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:command:ContainerDefinition' :: Maybe [Text]
command = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:hostname:ContainerDefinition' :: Maybe Text
hostname = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryCredentials:ContainerDefinition' :: Maybe RepositoryCredentials
repositoryCredentials = Maybe RepositoryCredentials
forall a. Maybe a
Prelude.Nothing,
$sel:dockerSecurityOptions:ContainerDefinition' :: Maybe [Text]
dockerSecurityOptions = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:healthCheck:ContainerDefinition' :: Maybe HealthCheck
healthCheck = Maybe HealthCheck
forall a. Maybe a
Prelude.Nothing,
$sel:disableNetworking:ContainerDefinition' :: Maybe Bool
disableNetworking = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:secrets:ContainerDefinition' :: Maybe [Secret]
secrets = Maybe [Secret]
forall a. Maybe a
Prelude.Nothing,
$sel:volumesFrom:ContainerDefinition' :: Maybe [VolumeFrom]
volumesFrom = Maybe [VolumeFrom]
forall a. Maybe a
Prelude.Nothing,
$sel:environment:ContainerDefinition' :: Maybe [KeyValuePair]
environment = Maybe [KeyValuePair]
forall a. Maybe a
Prelude.Nothing,
$sel:environmentFiles:ContainerDefinition' :: Maybe [EnvironmentFile]
environmentFiles = Maybe [EnvironmentFile]
forall a. Maybe a
Prelude.Nothing,
$sel:entryPoint:ContainerDefinition' :: Maybe [Text]
entryPoint = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:workingDirectory:ContainerDefinition' :: Maybe Text
workingDirectory = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ulimits:ContainerDefinition' :: Maybe [Ulimit]
ulimits = Maybe [Ulimit]
forall a. Maybe a
Prelude.Nothing,
$sel:stopTimeout:ContainerDefinition' :: Maybe Int
stopTimeout = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:privileged:ContainerDefinition' :: Maybe Bool
privileged = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:portMappings:ContainerDefinition' :: Maybe [PortMapping]
portMappings = Maybe [PortMapping]
forall a. Maybe a
Prelude.Nothing,
$sel:resourceRequirements:ContainerDefinition' :: Maybe [ResourceRequirement]
resourceRequirements = Maybe [ResourceRequirement]
forall a. Maybe a
Prelude.Nothing,
$sel:dockerLabels:ContainerDefinition' :: Maybe (HashMap Text Text)
dockerLabels = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:extraHosts:ContainerDefinition' :: Maybe [HostEntry]
extraHosts = Maybe [HostEntry]
forall a. Maybe a
Prelude.Nothing,
$sel:memory:ContainerDefinition' :: Maybe Int
memory = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:systemControls:ContainerDefinition' :: Maybe [SystemControl]
systemControls = Maybe [SystemControl]
forall a. Maybe a
Prelude.Nothing,
$sel:user:ContainerDefinition' :: Maybe Text
user = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:firelensConfiguration:ContainerDefinition' :: Maybe FirelensConfiguration
firelensConfiguration = Maybe FirelensConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:dnsSearchDomains:ContainerDefinition' :: Maybe [Text]
dnsSearchDomains = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:logConfiguration:ContainerDefinition' :: Maybe LogConfiguration
logConfiguration = Maybe LogConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:linuxParameters:ContainerDefinition' :: Maybe LinuxParameters
linuxParameters = Maybe LinuxParameters
forall a. Maybe a
Prelude.Nothing,
$sel:pseudoTerminal:ContainerDefinition' :: Maybe Bool
pseudoTerminal = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:dependsOn:ContainerDefinition' :: Maybe [ContainerDependency]
dependsOn = Maybe [ContainerDependency]
forall a. Maybe a
Prelude.Nothing,
$sel:name:ContainerDefinition' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dnsServers:ContainerDefinition' :: Maybe [Text]
dnsServers = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:mountPoints:ContainerDefinition' :: Maybe [MountPoint]
mountPoints = Maybe [MountPoint]
forall a. Maybe a
Prelude.Nothing,
$sel:interactive:ContainerDefinition' :: Maybe Bool
interactive = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:startTimeout:ContainerDefinition' :: Maybe Int
startTimeout = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:links:ContainerDefinition' :: Maybe [Text]
links = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:readonlyRootFilesystem:ContainerDefinition' :: Maybe Bool
readonlyRootFilesystem = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:essential:ContainerDefinition' :: Maybe Bool
essential = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:cpu:ContainerDefinition' :: Maybe Int
cpu = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:memoryReservation:ContainerDefinition' :: Maybe Int
memoryReservation = Maybe Int
forall a. Maybe a
Prelude.Nothing
}
containerDefinition_image :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Text)
containerDefinition_image :: (Maybe Text -> f (Maybe Text))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_image = (ContainerDefinition -> Maybe Text)
-> (ContainerDefinition -> Maybe Text -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Text
image :: Maybe Text
$sel:image:ContainerDefinition' :: ContainerDefinition -> Maybe Text
image} -> Maybe Text
image) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Text
a -> ContainerDefinition
s {$sel:image:ContainerDefinition' :: Maybe Text
image = Maybe Text
a} :: ContainerDefinition)
containerDefinition_command :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_command :: (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_command = (ContainerDefinition -> Maybe [Text])
-> (ContainerDefinition -> Maybe [Text] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [Text]
command :: Maybe [Text]
$sel:command:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
command} -> Maybe [Text]
command) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [Text]
a -> ContainerDefinition
s {$sel:command:ContainerDefinition' :: Maybe [Text]
command = Maybe [Text]
a} :: ContainerDefinition) ((Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_hostname :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Text)
containerDefinition_hostname :: (Maybe Text -> f (Maybe Text))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_hostname = (ContainerDefinition -> Maybe Text)
-> (ContainerDefinition -> Maybe Text -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Text
hostname :: Maybe Text
$sel:hostname:ContainerDefinition' :: ContainerDefinition -> Maybe Text
hostname} -> Maybe Text
hostname) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Text
a -> ContainerDefinition
s {$sel:hostname:ContainerDefinition' :: Maybe Text
hostname = Maybe Text
a} :: ContainerDefinition)
containerDefinition_repositoryCredentials :: Lens.Lens' ContainerDefinition (Prelude.Maybe RepositoryCredentials)
containerDefinition_repositoryCredentials :: (Maybe RepositoryCredentials -> f (Maybe RepositoryCredentials))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_repositoryCredentials = (ContainerDefinition -> Maybe RepositoryCredentials)
-> (ContainerDefinition
-> Maybe RepositoryCredentials -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe RepositoryCredentials)
(Maybe RepositoryCredentials)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe RepositoryCredentials
repositoryCredentials :: Maybe RepositoryCredentials
$sel:repositoryCredentials:ContainerDefinition' :: ContainerDefinition -> Maybe RepositoryCredentials
repositoryCredentials} -> Maybe RepositoryCredentials
repositoryCredentials) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe RepositoryCredentials
a -> ContainerDefinition
s {$sel:repositoryCredentials:ContainerDefinition' :: Maybe RepositoryCredentials
repositoryCredentials = Maybe RepositoryCredentials
a} :: ContainerDefinition)
containerDefinition_dockerSecurityOptions :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_dockerSecurityOptions :: (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_dockerSecurityOptions = (ContainerDefinition -> Maybe [Text])
-> (ContainerDefinition -> Maybe [Text] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [Text]
dockerSecurityOptions :: Maybe [Text]
$sel:dockerSecurityOptions:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
dockerSecurityOptions} -> Maybe [Text]
dockerSecurityOptions) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [Text]
a -> ContainerDefinition
s {$sel:dockerSecurityOptions:ContainerDefinition' :: Maybe [Text]
dockerSecurityOptions = Maybe [Text]
a} :: ContainerDefinition) ((Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_healthCheck :: Lens.Lens' ContainerDefinition (Prelude.Maybe HealthCheck)
containerDefinition_healthCheck :: (Maybe HealthCheck -> f (Maybe HealthCheck))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_healthCheck = (ContainerDefinition -> Maybe HealthCheck)
-> (ContainerDefinition
-> Maybe HealthCheck -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe HealthCheck)
(Maybe HealthCheck)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe HealthCheck
healthCheck :: Maybe HealthCheck
$sel:healthCheck:ContainerDefinition' :: ContainerDefinition -> Maybe HealthCheck
healthCheck} -> Maybe HealthCheck
healthCheck) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe HealthCheck
a -> ContainerDefinition
s {$sel:healthCheck:ContainerDefinition' :: Maybe HealthCheck
healthCheck = Maybe HealthCheck
a} :: ContainerDefinition)
containerDefinition_disableNetworking :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_disableNetworking :: (Maybe Bool -> f (Maybe Bool))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_disableNetworking = (ContainerDefinition -> Maybe Bool)
-> (ContainerDefinition -> Maybe Bool -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Bool
disableNetworking :: Maybe Bool
$sel:disableNetworking:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
disableNetworking} -> Maybe Bool
disableNetworking) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Bool
a -> ContainerDefinition
s {$sel:disableNetworking:ContainerDefinition' :: Maybe Bool
disableNetworking = Maybe Bool
a} :: ContainerDefinition)
containerDefinition_secrets :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Secret])
containerDefinition_secrets :: (Maybe [Secret] -> f (Maybe [Secret]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_secrets = (ContainerDefinition -> Maybe [Secret])
-> (ContainerDefinition -> Maybe [Secret] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [Secret])
(Maybe [Secret])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [Secret]
secrets :: Maybe [Secret]
$sel:secrets:ContainerDefinition' :: ContainerDefinition -> Maybe [Secret]
secrets} -> Maybe [Secret]
secrets) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [Secret]
a -> ContainerDefinition
s {$sel:secrets:ContainerDefinition' :: Maybe [Secret]
secrets = Maybe [Secret]
a} :: ContainerDefinition) ((Maybe [Secret] -> f (Maybe [Secret]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [Secret] -> f (Maybe [Secret]))
-> Maybe [Secret] -> f (Maybe [Secret]))
-> (Maybe [Secret] -> f (Maybe [Secret]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Secret] [Secret] [Secret] [Secret]
-> Iso
(Maybe [Secret]) (Maybe [Secret]) (Maybe [Secret]) (Maybe [Secret])
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 [Secret] [Secret] [Secret] [Secret]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_volumesFrom :: Lens.Lens' ContainerDefinition (Prelude.Maybe [VolumeFrom])
containerDefinition_volumesFrom :: (Maybe [VolumeFrom] -> f (Maybe [VolumeFrom]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_volumesFrom = (ContainerDefinition -> Maybe [VolumeFrom])
-> (ContainerDefinition
-> Maybe [VolumeFrom] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [VolumeFrom])
(Maybe [VolumeFrom])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [VolumeFrom]
volumesFrom :: Maybe [VolumeFrom]
$sel:volumesFrom:ContainerDefinition' :: ContainerDefinition -> Maybe [VolumeFrom]
volumesFrom} -> Maybe [VolumeFrom]
volumesFrom) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [VolumeFrom]
a -> ContainerDefinition
s {$sel:volumesFrom:ContainerDefinition' :: Maybe [VolumeFrom]
volumesFrom = Maybe [VolumeFrom]
a} :: ContainerDefinition) ((Maybe [VolumeFrom] -> f (Maybe [VolumeFrom]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [VolumeFrom] -> f (Maybe [VolumeFrom]))
-> Maybe [VolumeFrom] -> f (Maybe [VolumeFrom]))
-> (Maybe [VolumeFrom] -> f (Maybe [VolumeFrom]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [VolumeFrom] [VolumeFrom] [VolumeFrom] [VolumeFrom]
-> Iso
(Maybe [VolumeFrom])
(Maybe [VolumeFrom])
(Maybe [VolumeFrom])
(Maybe [VolumeFrom])
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 [VolumeFrom] [VolumeFrom] [VolumeFrom] [VolumeFrom]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_environment :: Lens.Lens' ContainerDefinition (Prelude.Maybe [KeyValuePair])
containerDefinition_environment :: (Maybe [KeyValuePair] -> f (Maybe [KeyValuePair]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_environment = (ContainerDefinition -> Maybe [KeyValuePair])
-> (ContainerDefinition
-> Maybe [KeyValuePair] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [KeyValuePair])
(Maybe [KeyValuePair])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [KeyValuePair]
environment :: Maybe [KeyValuePair]
$sel:environment:ContainerDefinition' :: ContainerDefinition -> Maybe [KeyValuePair]
environment} -> Maybe [KeyValuePair]
environment) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [KeyValuePair]
a -> ContainerDefinition
s {$sel:environment:ContainerDefinition' :: Maybe [KeyValuePair]
environment = Maybe [KeyValuePair]
a} :: ContainerDefinition) ((Maybe [KeyValuePair] -> f (Maybe [KeyValuePair]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [KeyValuePair] -> f (Maybe [KeyValuePair]))
-> Maybe [KeyValuePair] -> f (Maybe [KeyValuePair]))
-> (Maybe [KeyValuePair] -> f (Maybe [KeyValuePair]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [KeyValuePair] [KeyValuePair] [KeyValuePair] [KeyValuePair]
-> Iso
(Maybe [KeyValuePair])
(Maybe [KeyValuePair])
(Maybe [KeyValuePair])
(Maybe [KeyValuePair])
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 [KeyValuePair] [KeyValuePair] [KeyValuePair] [KeyValuePair]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_environmentFiles :: Lens.Lens' ContainerDefinition (Prelude.Maybe [EnvironmentFile])
containerDefinition_environmentFiles :: (Maybe [EnvironmentFile] -> f (Maybe [EnvironmentFile]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_environmentFiles = (ContainerDefinition -> Maybe [EnvironmentFile])
-> (ContainerDefinition
-> Maybe [EnvironmentFile] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [EnvironmentFile])
(Maybe [EnvironmentFile])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [EnvironmentFile]
environmentFiles :: Maybe [EnvironmentFile]
$sel:environmentFiles:ContainerDefinition' :: ContainerDefinition -> Maybe [EnvironmentFile]
environmentFiles} -> Maybe [EnvironmentFile]
environmentFiles) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [EnvironmentFile]
a -> ContainerDefinition
s {$sel:environmentFiles:ContainerDefinition' :: Maybe [EnvironmentFile]
environmentFiles = Maybe [EnvironmentFile]
a} :: ContainerDefinition) ((Maybe [EnvironmentFile] -> f (Maybe [EnvironmentFile]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [EnvironmentFile] -> f (Maybe [EnvironmentFile]))
-> Maybe [EnvironmentFile] -> f (Maybe [EnvironmentFile]))
-> (Maybe [EnvironmentFile] -> f (Maybe [EnvironmentFile]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[EnvironmentFile]
[EnvironmentFile]
[EnvironmentFile]
[EnvironmentFile]
-> Iso
(Maybe [EnvironmentFile])
(Maybe [EnvironmentFile])
(Maybe [EnvironmentFile])
(Maybe [EnvironmentFile])
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
[EnvironmentFile]
[EnvironmentFile]
[EnvironmentFile]
[EnvironmentFile]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_entryPoint :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_entryPoint :: (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_entryPoint = (ContainerDefinition -> Maybe [Text])
-> (ContainerDefinition -> Maybe [Text] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [Text]
entryPoint :: Maybe [Text]
$sel:entryPoint:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
entryPoint} -> Maybe [Text]
entryPoint) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [Text]
a -> ContainerDefinition
s {$sel:entryPoint:ContainerDefinition' :: Maybe [Text]
entryPoint = Maybe [Text]
a} :: ContainerDefinition) ((Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_workingDirectory :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Text)
containerDefinition_workingDirectory :: (Maybe Text -> f (Maybe Text))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_workingDirectory = (ContainerDefinition -> Maybe Text)
-> (ContainerDefinition -> Maybe Text -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Text
workingDirectory :: Maybe Text
$sel:workingDirectory:ContainerDefinition' :: ContainerDefinition -> Maybe Text
workingDirectory} -> Maybe Text
workingDirectory) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Text
a -> ContainerDefinition
s {$sel:workingDirectory:ContainerDefinition' :: Maybe Text
workingDirectory = Maybe Text
a} :: ContainerDefinition)
containerDefinition_ulimits :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Ulimit])
containerDefinition_ulimits :: (Maybe [Ulimit] -> f (Maybe [Ulimit]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_ulimits = (ContainerDefinition -> Maybe [Ulimit])
-> (ContainerDefinition -> Maybe [Ulimit] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [Ulimit])
(Maybe [Ulimit])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [Ulimit]
ulimits :: Maybe [Ulimit]
$sel:ulimits:ContainerDefinition' :: ContainerDefinition -> Maybe [Ulimit]
ulimits} -> Maybe [Ulimit]
ulimits) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [Ulimit]
a -> ContainerDefinition
s {$sel:ulimits:ContainerDefinition' :: Maybe [Ulimit]
ulimits = Maybe [Ulimit]
a} :: ContainerDefinition) ((Maybe [Ulimit] -> f (Maybe [Ulimit]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [Ulimit] -> f (Maybe [Ulimit]))
-> Maybe [Ulimit] -> f (Maybe [Ulimit]))
-> (Maybe [Ulimit] -> f (Maybe [Ulimit]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Ulimit] [Ulimit] [Ulimit] [Ulimit]
-> Iso
(Maybe [Ulimit]) (Maybe [Ulimit]) (Maybe [Ulimit]) (Maybe [Ulimit])
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 [Ulimit] [Ulimit] [Ulimit] [Ulimit]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_stopTimeout :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Int)
containerDefinition_stopTimeout :: (Maybe Int -> f (Maybe Int))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_stopTimeout = (ContainerDefinition -> Maybe Int)
-> (ContainerDefinition -> Maybe Int -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Int
stopTimeout :: Maybe Int
$sel:stopTimeout:ContainerDefinition' :: ContainerDefinition -> Maybe Int
stopTimeout} -> Maybe Int
stopTimeout) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Int
a -> ContainerDefinition
s {$sel:stopTimeout:ContainerDefinition' :: Maybe Int
stopTimeout = Maybe Int
a} :: ContainerDefinition)
containerDefinition_privileged :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_privileged :: (Maybe Bool -> f (Maybe Bool))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_privileged = (ContainerDefinition -> Maybe Bool)
-> (ContainerDefinition -> Maybe Bool -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Bool
privileged :: Maybe Bool
$sel:privileged:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
privileged} -> Maybe Bool
privileged) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Bool
a -> ContainerDefinition
s {$sel:privileged:ContainerDefinition' :: Maybe Bool
privileged = Maybe Bool
a} :: ContainerDefinition)
containerDefinition_portMappings :: Lens.Lens' ContainerDefinition (Prelude.Maybe [PortMapping])
containerDefinition_portMappings :: (Maybe [PortMapping] -> f (Maybe [PortMapping]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_portMappings = (ContainerDefinition -> Maybe [PortMapping])
-> (ContainerDefinition
-> Maybe [PortMapping] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [PortMapping])
(Maybe [PortMapping])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [PortMapping]
portMappings :: Maybe [PortMapping]
$sel:portMappings:ContainerDefinition' :: ContainerDefinition -> Maybe [PortMapping]
portMappings} -> Maybe [PortMapping]
portMappings) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [PortMapping]
a -> ContainerDefinition
s {$sel:portMappings:ContainerDefinition' :: Maybe [PortMapping]
portMappings = Maybe [PortMapping]
a} :: ContainerDefinition) ((Maybe [PortMapping] -> f (Maybe [PortMapping]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [PortMapping] -> f (Maybe [PortMapping]))
-> Maybe [PortMapping] -> f (Maybe [PortMapping]))
-> (Maybe [PortMapping] -> f (Maybe [PortMapping]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [PortMapping] [PortMapping] [PortMapping] [PortMapping]
-> Iso
(Maybe [PortMapping])
(Maybe [PortMapping])
(Maybe [PortMapping])
(Maybe [PortMapping])
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 [PortMapping] [PortMapping] [PortMapping] [PortMapping]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_resourceRequirements :: Lens.Lens' ContainerDefinition (Prelude.Maybe [ResourceRequirement])
containerDefinition_resourceRequirements :: (Maybe [ResourceRequirement] -> f (Maybe [ResourceRequirement]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_resourceRequirements = (ContainerDefinition -> Maybe [ResourceRequirement])
-> (ContainerDefinition
-> Maybe [ResourceRequirement] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [ResourceRequirement])
(Maybe [ResourceRequirement])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [ResourceRequirement]
resourceRequirements :: Maybe [ResourceRequirement]
$sel:resourceRequirements:ContainerDefinition' :: ContainerDefinition -> Maybe [ResourceRequirement]
resourceRequirements} -> Maybe [ResourceRequirement]
resourceRequirements) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [ResourceRequirement]
a -> ContainerDefinition
s {$sel:resourceRequirements:ContainerDefinition' :: Maybe [ResourceRequirement]
resourceRequirements = Maybe [ResourceRequirement]
a} :: ContainerDefinition) ((Maybe [ResourceRequirement] -> f (Maybe [ResourceRequirement]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [ResourceRequirement]
-> f (Maybe [ResourceRequirement]))
-> Maybe [ResourceRequirement] -> f (Maybe [ResourceRequirement]))
-> (Maybe [ResourceRequirement] -> f (Maybe [ResourceRequirement]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ResourceRequirement]
[ResourceRequirement]
[ResourceRequirement]
[ResourceRequirement]
-> Iso
(Maybe [ResourceRequirement])
(Maybe [ResourceRequirement])
(Maybe [ResourceRequirement])
(Maybe [ResourceRequirement])
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
[ResourceRequirement]
[ResourceRequirement]
[ResourceRequirement]
[ResourceRequirement]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_dockerLabels :: Lens.Lens' ContainerDefinition (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
containerDefinition_dockerLabels :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_dockerLabels = (ContainerDefinition -> Maybe (HashMap Text Text))
-> (ContainerDefinition
-> Maybe (HashMap Text Text) -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe (HashMap Text Text)
dockerLabels :: Maybe (HashMap Text Text)
$sel:dockerLabels:ContainerDefinition' :: ContainerDefinition -> Maybe (HashMap Text Text)
dockerLabels} -> Maybe (HashMap Text Text)
dockerLabels) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe (HashMap Text Text)
a -> ContainerDefinition
s {$sel:dockerLabels:ContainerDefinition' :: Maybe (HashMap Text Text)
dockerLabels = Maybe (HashMap Text Text)
a} :: ContainerDefinition) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_extraHosts :: Lens.Lens' ContainerDefinition (Prelude.Maybe [HostEntry])
= (ContainerDefinition -> Maybe [HostEntry])
-> (ContainerDefinition
-> Maybe [HostEntry] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [HostEntry])
(Maybe [HostEntry])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [HostEntry]
extraHosts :: Maybe [HostEntry]
$sel:extraHosts:ContainerDefinition' :: ContainerDefinition -> Maybe [HostEntry]
extraHosts} -> Maybe [HostEntry]
extraHosts) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [HostEntry]
a -> ContainerDefinition
s {$sel:extraHosts:ContainerDefinition' :: Maybe [HostEntry]
extraHosts = Maybe [HostEntry]
a} :: ContainerDefinition) ((Maybe [HostEntry] -> f (Maybe [HostEntry]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [HostEntry] -> f (Maybe [HostEntry]))
-> Maybe [HostEntry] -> f (Maybe [HostEntry]))
-> (Maybe [HostEntry] -> f (Maybe [HostEntry]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [HostEntry] [HostEntry] [HostEntry] [HostEntry]
-> Iso
(Maybe [HostEntry])
(Maybe [HostEntry])
(Maybe [HostEntry])
(Maybe [HostEntry])
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 [HostEntry] [HostEntry] [HostEntry] [HostEntry]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_memory :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Int)
containerDefinition_memory :: (Maybe Int -> f (Maybe Int))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_memory = (ContainerDefinition -> Maybe Int)
-> (ContainerDefinition -> Maybe Int -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Int
memory :: Maybe Int
$sel:memory:ContainerDefinition' :: ContainerDefinition -> Maybe Int
memory} -> Maybe Int
memory) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Int
a -> ContainerDefinition
s {$sel:memory:ContainerDefinition' :: Maybe Int
memory = Maybe Int
a} :: ContainerDefinition)
containerDefinition_systemControls :: Lens.Lens' ContainerDefinition (Prelude.Maybe [SystemControl])
containerDefinition_systemControls :: (Maybe [SystemControl] -> f (Maybe [SystemControl]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_systemControls = (ContainerDefinition -> Maybe [SystemControl])
-> (ContainerDefinition
-> Maybe [SystemControl] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [SystemControl])
(Maybe [SystemControl])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [SystemControl]
systemControls :: Maybe [SystemControl]
$sel:systemControls:ContainerDefinition' :: ContainerDefinition -> Maybe [SystemControl]
systemControls} -> Maybe [SystemControl]
systemControls) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [SystemControl]
a -> ContainerDefinition
s {$sel:systemControls:ContainerDefinition' :: Maybe [SystemControl]
systemControls = Maybe [SystemControl]
a} :: ContainerDefinition) ((Maybe [SystemControl] -> f (Maybe [SystemControl]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [SystemControl] -> f (Maybe [SystemControl]))
-> Maybe [SystemControl] -> f (Maybe [SystemControl]))
-> (Maybe [SystemControl] -> f (Maybe [SystemControl]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SystemControl] [SystemControl] [SystemControl] [SystemControl]
-> Iso
(Maybe [SystemControl])
(Maybe [SystemControl])
(Maybe [SystemControl])
(Maybe [SystemControl])
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
[SystemControl] [SystemControl] [SystemControl] [SystemControl]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_user :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Text)
containerDefinition_user :: (Maybe Text -> f (Maybe Text))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_user = (ContainerDefinition -> Maybe Text)
-> (ContainerDefinition -> Maybe Text -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Text
user :: Maybe Text
$sel:user:ContainerDefinition' :: ContainerDefinition -> Maybe Text
user} -> Maybe Text
user) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Text
a -> ContainerDefinition
s {$sel:user:ContainerDefinition' :: Maybe Text
user = Maybe Text
a} :: ContainerDefinition)
containerDefinition_firelensConfiguration :: Lens.Lens' ContainerDefinition (Prelude.Maybe FirelensConfiguration)
containerDefinition_firelensConfiguration :: (Maybe FirelensConfiguration -> f (Maybe FirelensConfiguration))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_firelensConfiguration = (ContainerDefinition -> Maybe FirelensConfiguration)
-> (ContainerDefinition
-> Maybe FirelensConfiguration -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe FirelensConfiguration)
(Maybe FirelensConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe FirelensConfiguration
firelensConfiguration :: Maybe FirelensConfiguration
$sel:firelensConfiguration:ContainerDefinition' :: ContainerDefinition -> Maybe FirelensConfiguration
firelensConfiguration} -> Maybe FirelensConfiguration
firelensConfiguration) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe FirelensConfiguration
a -> ContainerDefinition
s {$sel:firelensConfiguration:ContainerDefinition' :: Maybe FirelensConfiguration
firelensConfiguration = Maybe FirelensConfiguration
a} :: ContainerDefinition)
containerDefinition_dnsSearchDomains :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_dnsSearchDomains :: (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_dnsSearchDomains = (ContainerDefinition -> Maybe [Text])
-> (ContainerDefinition -> Maybe [Text] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [Text]
dnsSearchDomains :: Maybe [Text]
$sel:dnsSearchDomains:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
dnsSearchDomains} -> Maybe [Text]
dnsSearchDomains) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [Text]
a -> ContainerDefinition
s {$sel:dnsSearchDomains:ContainerDefinition' :: Maybe [Text]
dnsSearchDomains = Maybe [Text]
a} :: ContainerDefinition) ((Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_logConfiguration :: Lens.Lens' ContainerDefinition (Prelude.Maybe LogConfiguration)
containerDefinition_logConfiguration :: (Maybe LogConfiguration -> f (Maybe LogConfiguration))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_logConfiguration = (ContainerDefinition -> Maybe LogConfiguration)
-> (ContainerDefinition
-> Maybe LogConfiguration -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe LogConfiguration)
(Maybe LogConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe LogConfiguration
logConfiguration :: Maybe LogConfiguration
$sel:logConfiguration:ContainerDefinition' :: ContainerDefinition -> Maybe LogConfiguration
logConfiguration} -> Maybe LogConfiguration
logConfiguration) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe LogConfiguration
a -> ContainerDefinition
s {$sel:logConfiguration:ContainerDefinition' :: Maybe LogConfiguration
logConfiguration = Maybe LogConfiguration
a} :: ContainerDefinition)
containerDefinition_linuxParameters :: Lens.Lens' ContainerDefinition (Prelude.Maybe LinuxParameters)
containerDefinition_linuxParameters :: (Maybe LinuxParameters -> f (Maybe LinuxParameters))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_linuxParameters = (ContainerDefinition -> Maybe LinuxParameters)
-> (ContainerDefinition
-> Maybe LinuxParameters -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe LinuxParameters)
(Maybe LinuxParameters)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe LinuxParameters
linuxParameters :: Maybe LinuxParameters
$sel:linuxParameters:ContainerDefinition' :: ContainerDefinition -> Maybe LinuxParameters
linuxParameters} -> Maybe LinuxParameters
linuxParameters) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe LinuxParameters
a -> ContainerDefinition
s {$sel:linuxParameters:ContainerDefinition' :: Maybe LinuxParameters
linuxParameters = Maybe LinuxParameters
a} :: ContainerDefinition)
containerDefinition_pseudoTerminal :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_pseudoTerminal :: (Maybe Bool -> f (Maybe Bool))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_pseudoTerminal = (ContainerDefinition -> Maybe Bool)
-> (ContainerDefinition -> Maybe Bool -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Bool
pseudoTerminal :: Maybe Bool
$sel:pseudoTerminal:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
pseudoTerminal} -> Maybe Bool
pseudoTerminal) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Bool
a -> ContainerDefinition
s {$sel:pseudoTerminal:ContainerDefinition' :: Maybe Bool
pseudoTerminal = Maybe Bool
a} :: ContainerDefinition)
containerDefinition_dependsOn :: Lens.Lens' ContainerDefinition (Prelude.Maybe [ContainerDependency])
containerDefinition_dependsOn :: (Maybe [ContainerDependency] -> f (Maybe [ContainerDependency]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_dependsOn = (ContainerDefinition -> Maybe [ContainerDependency])
-> (ContainerDefinition
-> Maybe [ContainerDependency] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [ContainerDependency])
(Maybe [ContainerDependency])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [ContainerDependency]
dependsOn :: Maybe [ContainerDependency]
$sel:dependsOn:ContainerDefinition' :: ContainerDefinition -> Maybe [ContainerDependency]
dependsOn} -> Maybe [ContainerDependency]
dependsOn) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [ContainerDependency]
a -> ContainerDefinition
s {$sel:dependsOn:ContainerDefinition' :: Maybe [ContainerDependency]
dependsOn = Maybe [ContainerDependency]
a} :: ContainerDefinition) ((Maybe [ContainerDependency] -> f (Maybe [ContainerDependency]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [ContainerDependency]
-> f (Maybe [ContainerDependency]))
-> Maybe [ContainerDependency] -> f (Maybe [ContainerDependency]))
-> (Maybe [ContainerDependency] -> f (Maybe [ContainerDependency]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ContainerDependency]
[ContainerDependency]
[ContainerDependency]
[ContainerDependency]
-> Iso
(Maybe [ContainerDependency])
(Maybe [ContainerDependency])
(Maybe [ContainerDependency])
(Maybe [ContainerDependency])
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
[ContainerDependency]
[ContainerDependency]
[ContainerDependency]
[ContainerDependency]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_name :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Text)
containerDefinition_name :: (Maybe Text -> f (Maybe Text))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_name = (ContainerDefinition -> Maybe Text)
-> (ContainerDefinition -> Maybe Text -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Text
name :: Maybe Text
$sel:name:ContainerDefinition' :: ContainerDefinition -> Maybe Text
name} -> Maybe Text
name) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Text
a -> ContainerDefinition
s {$sel:name:ContainerDefinition' :: Maybe Text
name = Maybe Text
a} :: ContainerDefinition)
containerDefinition_dnsServers :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_dnsServers :: (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_dnsServers = (ContainerDefinition -> Maybe [Text])
-> (ContainerDefinition -> Maybe [Text] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [Text]
dnsServers :: Maybe [Text]
$sel:dnsServers:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
dnsServers} -> Maybe [Text]
dnsServers) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [Text]
a -> ContainerDefinition
s {$sel:dnsServers:ContainerDefinition' :: Maybe [Text]
dnsServers = Maybe [Text]
a} :: ContainerDefinition) ((Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_mountPoints :: Lens.Lens' ContainerDefinition (Prelude.Maybe [MountPoint])
containerDefinition_mountPoints :: (Maybe [MountPoint] -> f (Maybe [MountPoint]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_mountPoints = (ContainerDefinition -> Maybe [MountPoint])
-> (ContainerDefinition
-> Maybe [MountPoint] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [MountPoint])
(Maybe [MountPoint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [MountPoint]
mountPoints :: Maybe [MountPoint]
$sel:mountPoints:ContainerDefinition' :: ContainerDefinition -> Maybe [MountPoint]
mountPoints} -> Maybe [MountPoint]
mountPoints) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [MountPoint]
a -> ContainerDefinition
s {$sel:mountPoints:ContainerDefinition' :: Maybe [MountPoint]
mountPoints = Maybe [MountPoint]
a} :: ContainerDefinition) ((Maybe [MountPoint] -> f (Maybe [MountPoint]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [MountPoint] -> f (Maybe [MountPoint]))
-> Maybe [MountPoint] -> f (Maybe [MountPoint]))
-> (Maybe [MountPoint] -> f (Maybe [MountPoint]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [MountPoint] [MountPoint] [MountPoint] [MountPoint]
-> Iso
(Maybe [MountPoint])
(Maybe [MountPoint])
(Maybe [MountPoint])
(Maybe [MountPoint])
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 [MountPoint] [MountPoint] [MountPoint] [MountPoint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_interactive :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_interactive :: (Maybe Bool -> f (Maybe Bool))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_interactive = (ContainerDefinition -> Maybe Bool)
-> (ContainerDefinition -> Maybe Bool -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Bool
interactive :: Maybe Bool
$sel:interactive:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
interactive} -> Maybe Bool
interactive) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Bool
a -> ContainerDefinition
s {$sel:interactive:ContainerDefinition' :: Maybe Bool
interactive = Maybe Bool
a} :: ContainerDefinition)
containerDefinition_startTimeout :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Int)
containerDefinition_startTimeout :: (Maybe Int -> f (Maybe Int))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_startTimeout = (ContainerDefinition -> Maybe Int)
-> (ContainerDefinition -> Maybe Int -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Int
startTimeout :: Maybe Int
$sel:startTimeout:ContainerDefinition' :: ContainerDefinition -> Maybe Int
startTimeout} -> Maybe Int
startTimeout) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Int
a -> ContainerDefinition
s {$sel:startTimeout:ContainerDefinition' :: Maybe Int
startTimeout = Maybe Int
a} :: ContainerDefinition)
containerDefinition_links :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_links :: (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_links = (ContainerDefinition -> Maybe [Text])
-> (ContainerDefinition -> Maybe [Text] -> ContainerDefinition)
-> Lens
ContainerDefinition
ContainerDefinition
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe [Text]
links :: Maybe [Text]
$sel:links:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
links} -> Maybe [Text]
links) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe [Text]
a -> ContainerDefinition
s {$sel:links:ContainerDefinition' :: Maybe [Text]
links = Maybe [Text]
a} :: ContainerDefinition) ((Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition -> f ContainerDefinition)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ContainerDefinition
-> f ContainerDefinition
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
containerDefinition_readonlyRootFilesystem :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_readonlyRootFilesystem :: (Maybe Bool -> f (Maybe Bool))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_readonlyRootFilesystem = (ContainerDefinition -> Maybe Bool)
-> (ContainerDefinition -> Maybe Bool -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Bool
readonlyRootFilesystem :: Maybe Bool
$sel:readonlyRootFilesystem:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
readonlyRootFilesystem} -> Maybe Bool
readonlyRootFilesystem) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Bool
a -> ContainerDefinition
s {$sel:readonlyRootFilesystem:ContainerDefinition' :: Maybe Bool
readonlyRootFilesystem = Maybe Bool
a} :: ContainerDefinition)
containerDefinition_essential :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_essential :: (Maybe Bool -> f (Maybe Bool))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_essential = (ContainerDefinition -> Maybe Bool)
-> (ContainerDefinition -> Maybe Bool -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Bool
essential :: Maybe Bool
$sel:essential:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
essential} -> Maybe Bool
essential) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Bool
a -> ContainerDefinition
s {$sel:essential:ContainerDefinition' :: Maybe Bool
essential = Maybe Bool
a} :: ContainerDefinition)
containerDefinition_cpu :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Int)
containerDefinition_cpu :: (Maybe Int -> f (Maybe Int))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_cpu = (ContainerDefinition -> Maybe Int)
-> (ContainerDefinition -> Maybe Int -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Int
cpu :: Maybe Int
$sel:cpu:ContainerDefinition' :: ContainerDefinition -> Maybe Int
cpu} -> Maybe Int
cpu) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Int
a -> ContainerDefinition
s {$sel:cpu:ContainerDefinition' :: Maybe Int
cpu = Maybe Int
a} :: ContainerDefinition)
containerDefinition_memoryReservation :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Int)
containerDefinition_memoryReservation :: (Maybe Int -> f (Maybe Int))
-> ContainerDefinition -> f ContainerDefinition
containerDefinition_memoryReservation = (ContainerDefinition -> Maybe Int)
-> (ContainerDefinition -> Maybe Int -> ContainerDefinition)
-> Lens
ContainerDefinition ContainerDefinition (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerDefinition' {Maybe Int
memoryReservation :: Maybe Int
$sel:memoryReservation:ContainerDefinition' :: ContainerDefinition -> Maybe Int
memoryReservation} -> Maybe Int
memoryReservation) (\s :: ContainerDefinition
s@ContainerDefinition' {} Maybe Int
a -> ContainerDefinition
s {$sel:memoryReservation:ContainerDefinition' :: Maybe Int
memoryReservation = Maybe Int
a} :: ContainerDefinition)
instance Core.FromJSON ContainerDefinition where
parseJSON :: Value -> Parser ContainerDefinition
parseJSON =
String
-> (Object -> Parser ContainerDefinition)
-> Value
-> Parser ContainerDefinition
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ContainerDefinition"
( \Object
x ->
Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe RepositoryCredentials
-> Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition
ContainerDefinition'
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe RepositoryCredentials
-> Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Text)
-> Parser
(Maybe [Text]
-> Maybe Text
-> Maybe RepositoryCredentials
-> Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Functor 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
"image")
Parser
(Maybe [Text]
-> Maybe Text
-> Maybe RepositoryCredentials
-> Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [Text])
-> Parser
(Maybe Text
-> Maybe RepositoryCredentials
-> Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"command" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Text
-> Maybe RepositoryCredentials
-> Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Text)
-> Parser
(Maybe RepositoryCredentials
-> Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
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
"hostname")
Parser
(Maybe RepositoryCredentials
-> Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe RepositoryCredentials)
-> Parser
(Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RepositoryCredentials)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"repositoryCredentials")
Parser
(Maybe [Text]
-> Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [Text])
-> Parser
(Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"dockerSecurityOptions"
Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe HealthCheck
-> Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe HealthCheck)
-> Parser
(Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe HealthCheck)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"healthCheck")
Parser
(Maybe Bool
-> Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Bool)
-> Parser
(Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
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
"disableNetworking")
Parser
(Maybe [Secret]
-> Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [Secret])
-> Parser
(Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Secret]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"secrets" Parser (Maybe (Maybe [Secret]))
-> Maybe [Secret] -> Parser (Maybe [Secret])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Secret]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe [VolumeFrom]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [VolumeFrom])
-> Parser
(Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [VolumeFrom]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"volumesFrom" Parser (Maybe (Maybe [VolumeFrom]))
-> Maybe [VolumeFrom] -> Parser (Maybe [VolumeFrom])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [VolumeFrom]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [KeyValuePair])
-> Parser
(Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [KeyValuePair]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"environment" Parser (Maybe (Maybe [KeyValuePair]))
-> Maybe [KeyValuePair] -> Parser (Maybe [KeyValuePair])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [KeyValuePair]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe [EnvironmentFile]
-> Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [EnvironmentFile])
-> Parser
(Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [EnvironmentFile]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"environmentFiles"
Parser (Maybe (Maybe [EnvironmentFile]))
-> Maybe [EnvironmentFile] -> Parser (Maybe [EnvironmentFile])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [EnvironmentFile]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe [Text]
-> Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [Text])
-> Parser
(Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"entryPoint" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Text
-> Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Text)
-> Parser
(Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
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
"workingDirectory")
Parser
(Maybe [Ulimit]
-> Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [Ulimit])
-> Parser
(Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Ulimit]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ulimits" Parser (Maybe (Maybe [Ulimit]))
-> Maybe [Ulimit] -> Parser (Maybe [Ulimit])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Ulimit]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Int
-> Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Int)
-> Parser
(Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"stopTimeout")
Parser
(Maybe Bool
-> Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Bool)
-> Parser
(Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
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
"privileged")
Parser
(Maybe [PortMapping]
-> Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [PortMapping])
-> Parser
(Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [PortMapping]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"portMappings" Parser (Maybe (Maybe [PortMapping]))
-> Maybe [PortMapping] -> Parser (Maybe [PortMapping])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [PortMapping]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe [ResourceRequirement]
-> Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [ResourceRequirement])
-> Parser
(Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [ResourceRequirement]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"resourceRequirements"
Parser (Maybe (Maybe [ResourceRequirement]))
-> Maybe [ResourceRequirement]
-> Parser (Maybe [ResourceRequirement])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [ResourceRequirement]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe (HashMap Text Text)
-> Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe (HashMap Text Text))
-> Parser
(Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"dockerLabels" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe [HostEntry]
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [HostEntry])
-> Parser
(Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [HostEntry]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"extraHosts" Parser (Maybe (Maybe [HostEntry]))
-> Maybe [HostEntry] -> Parser (Maybe [HostEntry])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [HostEntry]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Int
-> Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Int)
-> Parser
(Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"memory")
Parser
(Maybe [SystemControl]
-> Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [SystemControl])
-> Parser
(Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [SystemControl]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"systemControls" Parser (Maybe (Maybe [SystemControl]))
-> Maybe [SystemControl] -> Parser (Maybe [SystemControl])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [SystemControl]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Text
-> Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Text)
-> Parser
(Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
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
"user")
Parser
(Maybe FirelensConfiguration
-> Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe FirelensConfiguration)
-> Parser
(Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe FirelensConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"firelensConfiguration")
Parser
(Maybe [Text]
-> Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [Text])
-> Parser
(Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"dnsSearchDomains"
Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe LogConfiguration
-> Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe LogConfiguration)
-> Parser
(Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LogConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"logConfiguration")
Parser
(Maybe LinuxParameters
-> Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe LinuxParameters)
-> Parser
(Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LinuxParameters)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"linuxParameters")
Parser
(Maybe Bool
-> Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Bool)
-> Parser
(Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
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
"pseudoTerminal")
Parser
(Maybe [ContainerDependency]
-> Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [ContainerDependency])
-> Parser
(Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [ContainerDependency]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"dependsOn" Parser (Maybe (Maybe [ContainerDependency]))
-> Maybe [ContainerDependency]
-> Parser (Maybe [ContainerDependency])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [ContainerDependency]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Text
-> Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Text)
-> Parser
(Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
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
"name")
Parser
(Maybe [Text]
-> Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [Text])
-> Parser
(Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"dnsServers" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe [MountPoint]
-> Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [MountPoint])
-> Parser
(Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [MountPoint]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"mountPoints" Parser (Maybe (Maybe [MountPoint]))
-> Maybe [MountPoint] -> Parser (Maybe [MountPoint])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [MountPoint]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Bool
-> Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Bool)
-> Parser
(Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
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
"interactive")
Parser
(Maybe Int
-> Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe Int)
-> Parser
(Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"startTimeout")
Parser
(Maybe [Text]
-> Maybe Bool
-> Maybe Bool
-> Maybe Int
-> Maybe Int
-> ContainerDefinition)
-> Parser (Maybe [Text])
-> Parser
(Maybe Bool
-> Maybe Bool -> Maybe Int -> Maybe Int -> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"links" Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Parser
(Maybe Bool
-> Maybe Bool -> Maybe Int -> Maybe Int -> ContainerDefinition)
-> Parser (Maybe Bool)
-> Parser
(Maybe Bool -> Maybe Int -> Maybe Int -> ContainerDefinition)
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
"readonlyRootFilesystem")
Parser
(Maybe Bool -> Maybe Int -> Maybe Int -> ContainerDefinition)
-> Parser (Maybe Bool)
-> Parser (Maybe Int -> Maybe Int -> ContainerDefinition)
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
"essential")
Parser (Maybe Int -> Maybe Int -> ContainerDefinition)
-> Parser (Maybe Int) -> Parser (Maybe Int -> ContainerDefinition)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"cpu")
Parser (Maybe Int -> ContainerDefinition)
-> Parser (Maybe Int) -> Parser ContainerDefinition
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"memoryReservation")
)
instance Prelude.Hashable ContainerDefinition
instance Prelude.NFData ContainerDefinition
instance Core.ToJSON ContainerDefinition where
toJSON :: ContainerDefinition -> Value
toJSON ContainerDefinition' {Maybe Bool
Maybe Int
Maybe [Text]
Maybe [ContainerDependency]
Maybe [EnvironmentFile]
Maybe [HostEntry]
Maybe [KeyValuePair]
Maybe [MountPoint]
Maybe [ResourceRequirement]
Maybe [Secret]
Maybe [SystemControl]
Maybe [PortMapping]
Maybe [Ulimit]
Maybe [VolumeFrom]
Maybe Text
Maybe (HashMap Text Text)
Maybe FirelensConfiguration
Maybe HealthCheck
Maybe RepositoryCredentials
Maybe LogConfiguration
Maybe LinuxParameters
memoryReservation :: Maybe Int
cpu :: Maybe Int
essential :: Maybe Bool
readonlyRootFilesystem :: Maybe Bool
links :: Maybe [Text]
startTimeout :: Maybe Int
interactive :: Maybe Bool
mountPoints :: Maybe [MountPoint]
dnsServers :: Maybe [Text]
name :: Maybe Text
dependsOn :: Maybe [ContainerDependency]
pseudoTerminal :: Maybe Bool
linuxParameters :: Maybe LinuxParameters
logConfiguration :: Maybe LogConfiguration
dnsSearchDomains :: Maybe [Text]
firelensConfiguration :: Maybe FirelensConfiguration
user :: Maybe Text
systemControls :: Maybe [SystemControl]
memory :: Maybe Int
extraHosts :: Maybe [HostEntry]
dockerLabels :: Maybe (HashMap Text Text)
resourceRequirements :: Maybe [ResourceRequirement]
portMappings :: Maybe [PortMapping]
privileged :: Maybe Bool
stopTimeout :: Maybe Int
ulimits :: Maybe [Ulimit]
workingDirectory :: Maybe Text
entryPoint :: Maybe [Text]
environmentFiles :: Maybe [EnvironmentFile]
environment :: Maybe [KeyValuePair]
volumesFrom :: Maybe [VolumeFrom]
secrets :: Maybe [Secret]
disableNetworking :: Maybe Bool
healthCheck :: Maybe HealthCheck
dockerSecurityOptions :: Maybe [Text]
repositoryCredentials :: Maybe RepositoryCredentials
hostname :: Maybe Text
command :: Maybe [Text]
image :: Maybe Text
$sel:memoryReservation:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:cpu:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:essential:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:readonlyRootFilesystem:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:links:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:startTimeout:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:interactive:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:mountPoints:ContainerDefinition' :: ContainerDefinition -> Maybe [MountPoint]
$sel:dnsServers:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:name:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:dependsOn:ContainerDefinition' :: ContainerDefinition -> Maybe [ContainerDependency]
$sel:pseudoTerminal:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:linuxParameters:ContainerDefinition' :: ContainerDefinition -> Maybe LinuxParameters
$sel:logConfiguration:ContainerDefinition' :: ContainerDefinition -> Maybe LogConfiguration
$sel:dnsSearchDomains:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:firelensConfiguration:ContainerDefinition' :: ContainerDefinition -> Maybe FirelensConfiguration
$sel:user:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:systemControls:ContainerDefinition' :: ContainerDefinition -> Maybe [SystemControl]
$sel:memory:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:extraHosts:ContainerDefinition' :: ContainerDefinition -> Maybe [HostEntry]
$sel:dockerLabels:ContainerDefinition' :: ContainerDefinition -> Maybe (HashMap Text Text)
$sel:resourceRequirements:ContainerDefinition' :: ContainerDefinition -> Maybe [ResourceRequirement]
$sel:portMappings:ContainerDefinition' :: ContainerDefinition -> Maybe [PortMapping]
$sel:privileged:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:stopTimeout:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:ulimits:ContainerDefinition' :: ContainerDefinition -> Maybe [Ulimit]
$sel:workingDirectory:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:entryPoint:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:environmentFiles:ContainerDefinition' :: ContainerDefinition -> Maybe [EnvironmentFile]
$sel:environment:ContainerDefinition' :: ContainerDefinition -> Maybe [KeyValuePair]
$sel:volumesFrom:ContainerDefinition' :: ContainerDefinition -> Maybe [VolumeFrom]
$sel:secrets:ContainerDefinition' :: ContainerDefinition -> Maybe [Secret]
$sel:disableNetworking:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:healthCheck:ContainerDefinition' :: ContainerDefinition -> Maybe HealthCheck
$sel:dockerSecurityOptions:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:repositoryCredentials:ContainerDefinition' :: ContainerDefinition -> Maybe RepositoryCredentials
$sel:hostname:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:command:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:image:ContainerDefinition' :: ContainerDefinition -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"image" 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
image,
(Text
"command" 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]
command,
(Text
"hostname" 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
hostname,
(Text
"repositoryCredentials" Text -> RepositoryCredentials -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(RepositoryCredentials -> Pair)
-> Maybe RepositoryCredentials -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RepositoryCredentials
repositoryCredentials,
(Text
"dockerSecurityOptions" 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]
dockerSecurityOptions,
(Text
"healthCheck" Text -> HealthCheck -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HealthCheck -> Pair) -> Maybe HealthCheck -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HealthCheck
healthCheck,
(Text
"disableNetworking" 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
disableNetworking,
(Text
"secrets" Text -> [Secret] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Secret] -> Pair) -> Maybe [Secret] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Secret]
secrets,
(Text
"volumesFrom" Text -> [VolumeFrom] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([VolumeFrom] -> Pair) -> Maybe [VolumeFrom] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [VolumeFrom]
volumesFrom,
(Text
"environment" Text -> [KeyValuePair] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([KeyValuePair] -> Pair) -> Maybe [KeyValuePair] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [KeyValuePair]
environment,
(Text
"environmentFiles" Text -> [EnvironmentFile] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([EnvironmentFile] -> Pair)
-> Maybe [EnvironmentFile] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [EnvironmentFile]
environmentFiles,
(Text
"entryPoint" 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]
entryPoint,
(Text
"workingDirectory" 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
workingDirectory,
(Text
"ulimits" Text -> [Ulimit] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Ulimit] -> Pair) -> Maybe [Ulimit] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Ulimit]
ulimits,
(Text
"stopTimeout" 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
stopTimeout,
(Text
"privileged" 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
privileged,
(Text
"portMappings" Text -> [PortMapping] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([PortMapping] -> Pair) -> Maybe [PortMapping] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PortMapping]
portMappings,
(Text
"resourceRequirements" Text -> [ResourceRequirement] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([ResourceRequirement] -> Pair)
-> Maybe [ResourceRequirement] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ResourceRequirement]
resourceRequirements,
(Text
"dockerLabels" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
dockerLabels,
(Text
"extraHosts" Text -> [HostEntry] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([HostEntry] -> Pair) -> Maybe [HostEntry] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [HostEntry]
extraHosts,
(Text
"memory" 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
memory,
(Text
"systemControls" Text -> [SystemControl] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
([SystemControl] -> Pair) -> Maybe [SystemControl] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SystemControl]
systemControls,
(Text
"user" 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
user,
(Text
"firelensConfiguration" Text -> FirelensConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(FirelensConfiguration -> Pair)
-> Maybe FirelensConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FirelensConfiguration
firelensConfiguration,
(Text
"dnsSearchDomains" 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]
dnsSearchDomains,
(Text
"logConfiguration" Text -> LogConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(LogConfiguration -> Pair) -> Maybe LogConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LogConfiguration
logConfiguration,
(Text
"linuxParameters" Text -> LinuxParameters -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(LinuxParameters -> Pair) -> Maybe LinuxParameters -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LinuxParameters
linuxParameters,
(Text
"pseudoTerminal" 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
pseudoTerminal,
(Text
"dependsOn" Text -> [ContainerDependency] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([ContainerDependency] -> Pair)
-> Maybe [ContainerDependency] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ContainerDependency]
dependsOn,
(Text
"name" 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
name,
(Text
"dnsServers" 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]
dnsServers,
(Text
"mountPoints" Text -> [MountPoint] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([MountPoint] -> Pair) -> Maybe [MountPoint] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MountPoint]
mountPoints,
(Text
"interactive" 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
interactive,
(Text
"startTimeout" 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
startTimeout,
(Text
"links" 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]
links,
(Text
"readonlyRootFilesystem" 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
readonlyRootFilesystem,
(Text
"essential" 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
essential,
(Text
"cpu" 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
cpu,
(Text
"memoryReservation" 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
memoryReservation
]
)