{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ECS.Types.ContainerDefinition
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ECS.Types.ContainerDefinition where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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.Prelude as Prelude

-- | Container definitions are used in task definitions to describe the
-- different containers that are launched as part of a task.
--
-- /See:/ 'newContainerDefinition' smart constructor.
data ContainerDefinition = ContainerDefinition'
  { -- | The command that\'s passed to the container. This parameter maps to
    -- @Cmd@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @COMMAND@ parameter to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    -- For more information, see
    -- <https://docs.docker.com/engine/reference/builder/#cmd>. If there are
    -- multiple arguments, each argument is a separated string in the array.
    ContainerDefinition -> Maybe [Text]
command :: Prelude.Maybe [Prelude.Text],
    -- | The number of @cpu@ units reserved for the container. This parameter
    -- maps to @CpuShares@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--cpu-shares@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- This field is optional for tasks using the Fargate launch type, and the
    -- only requirement is that the total amount of CPU reserved for all
    -- containers within a task be lower than the task-level @cpu@ value.
    --
    -- You can determine the number of CPU units that are available per EC2
    -- instance type by multiplying the vCPUs listed for that instance type on
    -- the <http://aws.amazon.com/ec2/instance-types/ Amazon EC2 Instances>
    -- detail page by 1,024.
    --
    -- Linux containers share unallocated CPU units with other containers on
    -- the container instance with the same ratio as their allocated amount.
    -- For example, if you run a single-container task on a single-core
    -- instance type with 512 CPU units specified for that container, and
    -- that\'s the only task running on the container instance, that container
    -- could use the full 1,024 CPU unit share at any given time. However, if
    -- you launched another copy of the same task on that container instance,
    -- each task is guaranteed a minimum of 512 CPU units when needed.
    -- Moreover, each container could float to higher CPU usage if the other
    -- container was not using it. If both tasks were 100% active all of the
    -- time, they would be limited to 512 CPU units.
    --
    -- On Linux container instances, the Docker daemon on the container
    -- instance uses the CPU value to calculate the relative CPU share ratios
    -- for running containers. For more information, see
    -- <https://docs.docker.com/engine/reference/run/#cpu-share-constraint CPU share constraint>
    -- in the Docker documentation. The minimum valid CPU share value that the
    -- Linux kernel allows is 2. However, the CPU parameter isn\'t required,
    -- and you can use CPU values below 2 in your container definitions. For
    -- CPU values below 2 (including null), the behavior varies based on your
    -- Amazon ECS container agent version:
    --
    -- -   __Agent versions less than or equal to 1.1.0:__ Null and zero CPU
    --     values are passed to Docker as 0, which Docker then converts to
    --     1,024 CPU shares. CPU values of 1 are passed to Docker as 1, which
    --     the Linux kernel converts to two CPU shares.
    --
    -- -   __Agent versions greater than or equal to 1.2.0:__ Null, zero, and
    --     CPU values of 1 are passed to Docker as 2.
    --
    -- On Windows container instances, the CPU limit is enforced as an absolute
    -- limit, or a quota. Windows containers only have access to the specified
    -- amount of CPU that\'s described in the task definition. A null or zero
    -- CPU value is passed to Docker as @0@, which Windows interprets as 1% of
    -- one CPU.
    ContainerDefinition -> Maybe Int
cpu :: Prelude.Maybe Prelude.Int,
    -- | The dependencies defined for container startup and shutdown. A container
    -- can contain multiple dependencies on other containers in a task
    -- definition. When a dependency is defined for container startup, for
    -- container shutdown it is reversed.
    --
    -- For tasks using the EC2 launch type, the container instances require at
    -- least version 1.26.0 of the container agent to turn on container
    -- dependencies. However, we recommend using the latest container agent
    -- version. For information about checking your agent version and updating
    -- to the latest version, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html Updating the Amazon ECS Container Agent>
    -- in the /Amazon Elastic Container Service Developer Guide/. If you\'re
    -- using an Amazon ECS-optimized Linux AMI, your instance needs at least
    -- version 1.26.0-1 of the @ecs-init@ package. If your container instances
    -- are launched from version @20190301@ or later, then they contain the
    -- required versions of the container agent and @ecs-init@. For more
    -- information, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html Amazon ECS-optimized Linux AMI>
    -- in the /Amazon Elastic Container Service Developer Guide/.
    --
    -- For tasks using the Fargate launch type, the task or service requires
    -- the following platforms:
    --
    -- -   Linux platform version @1.3.0@ or later.
    --
    -- -   Windows platform version @1.0.0@ or later.
    ContainerDefinition -> Maybe [ContainerDependency]
dependsOn :: Prelude.Maybe [ContainerDependency],
    -- | When this parameter is true, networking is disabled within the
    -- container. This parameter maps to @NetworkDisabled@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API>.
    --
    -- This parameter is not supported for Windows containers.
    ContainerDefinition -> Maybe Bool
disableNetworking :: Prelude.Maybe Prelude.Bool,
    -- | A list of DNS search domains that are presented to the container. This
    -- parameter maps to @DnsSearch@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--dns-search@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- This parameter is not supported for Windows containers.
    ContainerDefinition -> Maybe [Text]
dnsSearchDomains :: Prelude.Maybe [Prelude.Text],
    -- | A list of DNS servers that are presented to the container. This
    -- parameter maps to @Dns@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--dns@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- This parameter is not supported for Windows containers.
    ContainerDefinition -> Maybe [Text]
dnsServers :: Prelude.Maybe [Prelude.Text],
    -- | A key\/value map of labels to add to the container. This parameter maps
    -- to @Labels@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--label@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    -- This parameter requires version 1.18 of the Docker Remote API or greater
    -- on your container instance. To check the Docker Remote API version on
    -- your container instance, log in to your container instance and run the
    -- following command:
    -- @sudo docker version --format \'{{.Server.APIVersion}}\'@
    ContainerDefinition -> Maybe (HashMap Text Text)
dockerLabels :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | A list of strings to provide custom labels for SELinux and AppArmor
    -- multi-level security systems. This field isn\'t valid for containers in
    -- tasks using the Fargate launch type.
    --
    -- With Windows containers, this parameter can be used to reference a
    -- credential spec file when configuring a container for Active Directory
    -- authentication. For more information, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html Using gMSAs for Windows Containers>
    -- in the /Amazon Elastic Container Service Developer Guide/.
    --
    -- This parameter maps to @SecurityOpt@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--security-opt@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- The Amazon ECS container agent running on a container instance must
    -- register with the @ECS_SELINUX_CAPABLE=true@ or
    -- @ECS_APPARMOR_CAPABLE=true@ environment variables before containers
    -- placed on that instance can use these security options. For more
    -- information, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html Amazon ECS Container Agent Configuration>
    -- in the /Amazon Elastic Container Service Developer Guide/.
    --
    -- For more information about valid values, see
    -- <https://docs.docker.com/engine/reference/run/#security-configuration Docker Run Security Configuration>.
    --
    -- Valid values: \"no-new-privileges\" | \"apparmor:PROFILE\" |
    -- \"label:value\" | \"credentialspec:CredentialSpecFilePath\"
    ContainerDefinition -> Maybe [Text]
dockerSecurityOptions :: Prelude.Maybe [Prelude.Text],
    -- | Early versions of the Amazon ECS container agent don\'t properly handle
    -- @entryPoint@ parameters. If you have problems using @entryPoint@, update
    -- your container agent or enter your commands and arguments as @command@
    -- array items instead.
    --
    -- The entry point that\'s passed to the container. This parameter maps to
    -- @Entrypoint@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--entrypoint@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    -- For more information, see
    -- <https://docs.docker.com/engine/reference/builder/#entrypoint>.
    ContainerDefinition -> Maybe [Text]
entryPoint :: Prelude.Maybe [Prelude.Text],
    -- | The environment variables to pass to a container. This parameter maps to
    -- @Env@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--env@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- We don\'t recommend that you use plaintext environment variables for
    -- sensitive information, such as credential data.
    ContainerDefinition -> Maybe [KeyValuePair]
environment :: Prelude.Maybe [KeyValuePair],
    -- | A list of files containing the environment variables to pass to a
    -- container. This parameter maps to the @--env-file@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- You can specify up to ten environment files. The file must have a @.env@
    -- file extension. Each line in an environment file contains an environment
    -- variable in @VARIABLE=VALUE@ format. Lines beginning with @#@ are
    -- treated as comments and are ignored. For more information about the
    -- environment variable file syntax, see
    -- <https://docs.docker.com/compose/env-file/ Declare default environment variables in file>.
    --
    -- If there are environment variables specified using the @environment@
    -- parameter in a container definition, they take precedence over the
    -- variables contained within an environment file. If multiple environment
    -- files are specified that contain the same variable, they\'re processed
    -- from the top down. We recommend that you use unique variable names. For
    -- more information, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html Specifying Environment Variables>
    -- in the /Amazon Elastic Container Service Developer Guide/.
    ContainerDefinition -> Maybe [EnvironmentFile]
environmentFiles :: Prelude.Maybe [EnvironmentFile],
    -- | If the @essential@ parameter of a container is marked as @true@, and
    -- that container fails or stops for any reason, all other containers that
    -- are part of the task are stopped. If the @essential@ parameter of a
    -- container is marked as @false@, its failure doesn\'t affect the rest of
    -- the containers in a task. If this parameter is omitted, a container is
    -- assumed to be essential.
    --
    -- All tasks must have at least one essential container. If you have an
    -- application that\'s composed of multiple containers, group containers
    -- that are used for a common purpose into components, and separate the
    -- different components into multiple task definitions. For more
    -- information, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html Application Architecture>
    -- in the /Amazon Elastic Container Service Developer Guide/.
    ContainerDefinition -> Maybe Bool
essential :: Prelude.Maybe Prelude.Bool,
    -- | A list of hostnames and IP address mappings to append to the
    -- @\/etc\/hosts@ file on the container. This parameter maps to
    -- @ExtraHosts@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--add-host@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- This parameter isn\'t supported for Windows containers or tasks that use
    -- the @awsvpc@ network mode.
    ContainerDefinition -> Maybe [HostEntry]
extraHosts :: Prelude.Maybe [HostEntry],
    -- | The FireLens configuration for the container. This is used to specify
    -- and configure a log router for container logs. For more information, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html Custom Log Routing>
    -- in the /Amazon Elastic Container Service Developer Guide/.
    ContainerDefinition -> Maybe FirelensConfiguration
firelensConfiguration :: Prelude.Maybe FirelensConfiguration,
    -- | The container health check command and associated configuration
    -- parameters for the container. This parameter maps to @HealthCheck@ in
    -- the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @HEALTHCHECK@ parameter of
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    ContainerDefinition -> Maybe HealthCheck
healthCheck :: Prelude.Maybe HealthCheck,
    -- | The hostname to use for your container. This parameter maps to
    -- @Hostname@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--hostname@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- The @hostname@ parameter is not supported if you\'re using the @awsvpc@
    -- network mode.
    ContainerDefinition -> Maybe Text
hostname :: Prelude.Maybe Prelude.Text,
    -- | The image used to start a container. This string is passed directly to
    -- the Docker daemon. By default, images in the Docker Hub registry are
    -- available. Other repositories are specified with either
    -- @ @/@repository-url@/@\/@/@image@/@:@/@tag@/@ @ or
    -- @ @/@repository-url@/@\/@/@image@/@\@@/@digest@/@ @. Up to 255 letters
    -- (uppercase and lowercase), numbers, hyphens, underscores, colons,
    -- periods, forward slashes, and number signs are allowed. This parameter
    -- maps to @Image@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @IMAGE@ parameter of
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- -   When a new task starts, the Amazon ECS container agent pulls the
    --     latest version of the specified image and tag for the container to
    --     use. However, subsequent updates to a repository image aren\'t
    --     propagated to already running tasks.
    --
    -- -   Images in Amazon ECR repositories can be specified by either using
    --     the full @registry\/repository:tag@ or
    --     @registry\/repository\@digest@. For example,
    --     @012345678910.dkr.ecr.\<region-name>.amazonaws.com\/\<repository-name>:latest@
    --     or
    --     @012345678910.dkr.ecr.\<region-name>.amazonaws.com\/\<repository-name>\@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE@.
    --
    -- -   Images in official repositories on Docker Hub use a single name (for
    --     example, @ubuntu@ or @mongo@).
    --
    -- -   Images in other repositories on Docker Hub are qualified with an
    --     organization name (for example, @amazon\/amazon-ecs-agent@).
    --
    -- -   Images in other online repositories are qualified further by a
    --     domain name (for example, @quay.io\/assemblyline\/ubuntu@).
    ContainerDefinition -> Maybe Text
image :: Prelude.Maybe Prelude.Text,
    -- | When this parameter is @true@, you can deploy containerized applications
    -- that require @stdin@ or a @tty@ to be allocated. This parameter maps to
    -- @OpenStdin@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--interactive@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    ContainerDefinition -> Maybe Bool
interactive :: Prelude.Maybe Prelude.Bool,
    -- | The @links@ parameter allows containers to communicate with each other
    -- without the need for port mappings. This parameter is only supported if
    -- the network mode of a task definition is @bridge@. The
    -- @name:internalName@ construct is analogous to @name:alias@ in Docker
    -- links. Up to 255 letters (uppercase and lowercase), numbers,
    -- underscores, and hyphens are allowed. For more information about linking
    -- Docker containers, go to
    -- <https://docs.docker.com/network/links/ Legacy container links> in the
    -- Docker documentation. This parameter maps to @Links@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--link@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- This parameter is not supported for Windows containers.
    --
    -- Containers that are collocated on a single container instance may be
    -- able to communicate with each other without requiring links or host port
    -- mappings. Network isolation is achieved on the container instance using
    -- security groups and VPC settings.
    ContainerDefinition -> Maybe [Text]
links :: Prelude.Maybe [Prelude.Text],
    -- | Linux-specific modifications that are applied to the container, such as
    -- Linux kernel capabilities. For more information see KernelCapabilities.
    --
    -- This parameter is not supported for Windows containers.
    ContainerDefinition -> Maybe LinuxParameters
linuxParameters :: Prelude.Maybe LinuxParameters,
    -- | The log configuration specification for the container.
    --
    -- This parameter maps to @LogConfig@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--log-driver@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    -- By default, containers use the same logging driver that the Docker
    -- daemon uses. However the container can use a different logging driver
    -- than the Docker daemon by specifying a log driver with this parameter in
    -- the container definition. To use a different logging driver for a
    -- container, the log system must be configured properly on the container
    -- instance (or on a different log server for remote logging options). For
    -- more information about the options for different supported log drivers,
    -- see
    -- <https://docs.docker.com/engine/admin/logging/overview/ Configure logging drivers>
    -- in the Docker documentation.
    --
    -- Amazon ECS currently supports a subset of the logging drivers available
    -- to the Docker daemon (shown in the LogConfiguration data type).
    -- Additional log drivers may be available in future releases of the Amazon
    -- ECS container agent.
    --
    -- This parameter requires version 1.18 of the Docker Remote API or greater
    -- on your container instance. To check the Docker Remote API version on
    -- your container instance, log in to your container instance and run the
    -- following command:
    -- @sudo docker version --format \'{{.Server.APIVersion}}\'@
    --
    -- The Amazon ECS container agent running on a container instance must
    -- register the logging drivers available on that instance with the
    -- @ECS_AVAILABLE_LOGGING_DRIVERS@ environment variable before containers
    -- placed on that instance can use these log configuration options. For
    -- more information, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html Amazon ECS Container Agent Configuration>
    -- in the /Amazon Elastic Container Service Developer Guide/.
    ContainerDefinition -> Maybe LogConfiguration
logConfiguration :: Prelude.Maybe LogConfiguration,
    -- | The amount (in MiB) of memory to present to the container. If your
    -- container attempts to exceed the memory specified here, the container is
    -- killed. The total amount of memory reserved for all containers within a
    -- task must be lower than the task @memory@ value, if one is specified.
    -- This parameter maps to @Memory@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--memory@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- If using the Fargate launch type, this parameter is optional.
    --
    -- If using the EC2 launch type, you must specify either a task-level
    -- memory value or a container-level memory value. If you specify both a
    -- container-level @memory@ and @memoryReservation@ value, @memory@ must be
    -- greater than @memoryReservation@. If you specify @memoryReservation@,
    -- then that value is subtracted from the available memory resources for
    -- the container instance where the container is placed. Otherwise, the
    -- value of @memory@ is used.
    --
    -- The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory
    -- for a container. So, don\'t specify less than 6 MiB of memory for your
    -- containers.
    --
    -- The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of
    -- memory for a container. So, don\'t specify less than 4 MiB of memory for
    -- your containers.
    ContainerDefinition -> Maybe Int
memory :: Prelude.Maybe Prelude.Int,
    -- | The soft limit (in MiB) of memory to reserve for the container. When
    -- system memory is under heavy contention, Docker attempts to keep the
    -- container memory to this soft limit. However, your container can consume
    -- more memory when it needs to, up to either the hard limit specified with
    -- the @memory@ parameter (if applicable), or all of the available memory
    -- on the container instance, whichever comes first. This parameter maps to
    -- @MemoryReservation@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--memory-reservation@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- If a task-level memory value is not specified, you must specify a
    -- non-zero integer for one or both of @memory@ or @memoryReservation@ in a
    -- container definition. If you specify both, @memory@ must be greater than
    -- @memoryReservation@. If you specify @memoryReservation@, then that value
    -- is subtracted from the available memory resources for the container
    -- instance where the container is placed. Otherwise, the value of @memory@
    -- is used.
    --
    -- For example, if your container normally uses 128 MiB of memory, but
    -- occasionally bursts to 256 MiB of memory for short periods of time, you
    -- can set a @memoryReservation@ of 128 MiB, and a @memory@ hard limit of
    -- 300 MiB. This configuration would allow the container to only reserve
    -- 128 MiB of memory from the remaining resources on the container
    -- instance, but also allow the container to consume more memory resources
    -- when needed.
    --
    -- The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory
    -- for a container. So, don\'t specify less than 6 MiB of memory for your
    -- containers.
    --
    -- The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of
    -- memory for a container. So, don\'t specify less than 4 MiB of memory for
    -- your containers.
    ContainerDefinition -> Maybe Int
memoryReservation :: Prelude.Maybe Prelude.Int,
    -- | The mount points for data volumes in your container.
    --
    -- This parameter maps to @Volumes@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--volume@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- Windows containers can mount whole directories on the same drive as
    -- @$env:ProgramData@. Windows containers can\'t mount directories on a
    -- different drive, and mount point can\'t be across drives.
    ContainerDefinition -> Maybe [MountPoint]
mountPoints :: Prelude.Maybe [MountPoint],
    -- | The name of a container. If you\'re linking multiple containers together
    -- in a task definition, the @name@ of one container can be entered in the
    -- @links@ of another container to connect the containers. Up to 255
    -- letters (uppercase and lowercase), numbers, underscores, and hyphens are
    -- allowed. This parameter maps to @name@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--name@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    ContainerDefinition -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The list of port mappings for the container. Port mappings allow
    -- containers to access ports on the host container instance to send or
    -- receive traffic.
    --
    -- For task definitions that use the @awsvpc@ network mode, only specify
    -- the @containerPort@. The @hostPort@ can be left blank or it must be the
    -- same value as the @containerPort@.
    --
    -- Port mappings on Windows use the @NetNAT@ gateway address rather than
    -- @localhost@. There\'s no loopback for port mappings on Windows, so you
    -- can\'t access a container\'s mapped port from the host itself.
    --
    -- This parameter maps to @PortBindings@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--publish@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    -- If the network mode of a task definition is set to @none@, then you
    -- can\'t specify port mappings. If the network mode of a task definition
    -- is set to @host@, then host ports must either be undefined or they must
    -- match the container port in the port mapping.
    --
    -- After a task reaches the @RUNNING@ status, manual and automatic host and
    -- container port assignments are visible in the __Network Bindings__
    -- section of a container description for a selected task in the Amazon ECS
    -- console. The assignments are also visible in the @networkBindings@
    -- section DescribeTasks responses.
    ContainerDefinition -> Maybe [PortMapping]
portMappings :: Prelude.Maybe [PortMapping],
    -- | When this parameter is true, the container is given elevated privileges
    -- on the host container instance (similar to the @root@ user). This
    -- parameter maps to @Privileged@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--privileged@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- This parameter is not supported for Windows containers or tasks run on
    -- Fargate.
    ContainerDefinition -> Maybe Bool
privileged :: Prelude.Maybe Prelude.Bool,
    -- | When this parameter is @true@, a TTY is allocated. This parameter maps
    -- to @Tty@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--tty@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    ContainerDefinition -> Maybe Bool
pseudoTerminal :: Prelude.Maybe Prelude.Bool,
    -- | When this parameter is true, the container is given read-only access to
    -- its root file system. This parameter maps to @ReadonlyRootfs@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--read-only@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- This parameter is not supported for Windows containers.
    ContainerDefinition -> Maybe Bool
readonlyRootFilesystem :: Prelude.Maybe Prelude.Bool,
    -- | The private repository authentication credentials to use.
    ContainerDefinition -> Maybe RepositoryCredentials
repositoryCredentials :: Prelude.Maybe RepositoryCredentials,
    -- | The type and amount of a resource to assign to a container. The only
    -- supported resource is a GPU.
    ContainerDefinition -> Maybe [ResourceRequirement]
resourceRequirements :: Prelude.Maybe [ResourceRequirement],
    -- | The secrets to pass to the container. For more information, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html Specifying Sensitive Data>
    -- in the /Amazon Elastic Container Service Developer Guide/.
    ContainerDefinition -> Maybe [Secret]
secrets :: Prelude.Maybe [Secret],
    -- | Time duration (in seconds) to wait before giving up on resolving
    -- dependencies for a container. For example, you specify two containers in
    -- a task definition with containerA having a dependency on containerB
    -- reaching a @COMPLETE@, @SUCCESS@, or @HEALTHY@ status. If a
    -- @startTimeout@ value is specified for containerB and it doesn\'t reach
    -- the desired status within that time then containerA gives up and not
    -- start. This results in the task transitioning to a @STOPPED@ state.
    --
    -- When the @ECS_CONTAINER_START_TIMEOUT@ container agent configuration
    -- variable is used, it\'s enforced independently from this start timeout
    -- value.
    --
    -- For tasks using the Fargate launch type, the task or service requires
    -- the following platforms:
    --
    -- -   Linux platform version @1.3.0@ or later.
    --
    -- -   Windows platform version @1.0.0@ or later.
    --
    -- For tasks using the EC2 launch type, your container instances require at
    -- least version @1.26.0@ of the container agent to use a container start
    -- timeout value. However, we recommend using the latest container agent
    -- version. For information about checking your agent version and updating
    -- to the latest version, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html Updating the Amazon ECS Container Agent>
    -- in the /Amazon Elastic Container Service Developer Guide/. If you\'re
    -- using an Amazon ECS-optimized Linux AMI, your instance needs at least
    -- version @1.26.0-1@ of the @ecs-init@ package. If your container
    -- instances are launched from version @20190301@ or later, then they
    -- contain the required versions of the container agent and @ecs-init@. For
    -- more information, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html Amazon ECS-optimized Linux AMI>
    -- in the /Amazon Elastic Container Service Developer Guide/.
    ContainerDefinition -> Maybe Int
startTimeout :: Prelude.Maybe Prelude.Int,
    -- | Time duration (in seconds) to wait before the container is forcefully
    -- killed if it doesn\'t exit normally on its own.
    --
    -- For tasks using the Fargate launch type, the task or service requires
    -- the following platforms:
    --
    -- -   Linux platform version @1.3.0@ or later.
    --
    -- -   Windows platform version @1.0.0@ or later.
    --
    -- The max stop timeout value is 120 seconds and if the parameter is not
    -- specified, the default value of 30 seconds is used.
    --
    -- For tasks that use the EC2 launch type, if the @stopTimeout@ parameter
    -- isn\'t specified, the value set for the Amazon ECS container agent
    -- configuration variable @ECS_CONTAINER_STOP_TIMEOUT@ is used. If neither
    -- the @stopTimeout@ parameter or the @ECS_CONTAINER_STOP_TIMEOUT@ agent
    -- configuration variable are set, then the default values of 30 seconds
    -- for Linux containers and 30 seconds on Windows containers are used. Your
    -- container instances require at least version 1.26.0 of the container
    -- agent to use a container stop timeout value. However, we recommend using
    -- the latest container agent version. For information about checking your
    -- agent version and updating to the latest version, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html Updating the Amazon ECS Container Agent>
    -- in the /Amazon Elastic Container Service Developer Guide/. If you\'re
    -- using an Amazon ECS-optimized Linux AMI, your instance needs at least
    -- version 1.26.0-1 of the @ecs-init@ package. If your container instances
    -- are launched from version @20190301@ or later, then they contain the
    -- required versions of the container agent and @ecs-init@. For more
    -- information, see
    -- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html Amazon ECS-optimized Linux AMI>
    -- in the /Amazon Elastic Container Service Developer Guide/.
    ContainerDefinition -> Maybe Int
stopTimeout :: Prelude.Maybe Prelude.Int,
    -- | A list of namespaced kernel parameters to set in the container. This
    -- parameter maps to @Sysctls@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--sysctl@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- We don\'t recommended that you specify network-related @systemControls@
    -- parameters for multiple containers in a single task that also uses
    -- either the @awsvpc@ or @host@ network modes. For tasks that use the
    -- @awsvpc@ network mode, the container that\'s started last determines
    -- which @systemControls@ parameters take effect. For tasks that use the
    -- @host@ network mode, it changes the container instance\'s namespaced
    -- kernel parameters as well as the containers.
    ContainerDefinition -> Maybe [SystemControl]
systemControls :: Prelude.Maybe [SystemControl],
    -- | A list of @ulimits@ to set in the container. If a @ulimit@ value is
    -- specified in a task definition, it overrides the default values set by
    -- Docker. This parameter maps to @Ulimits@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--ulimit@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    -- Valid naming values are displayed in the Ulimit data type.
    --
    -- Amazon ECS tasks hosted on Fargate use the default resource limit values
    -- set by the operating system with the exception of the @nofile@ resource
    -- limit parameter which Fargate overrides. The @nofile@ resource limit
    -- sets a restriction on the number of open files that a container can use.
    -- The default @nofile@ soft limit is @1024@ and hard limit is @4096@.
    --
    -- This parameter requires version 1.18 of the Docker Remote API or greater
    -- on your container instance. To check the Docker Remote API version on
    -- your container instance, log in to your container instance and run the
    -- following command:
    -- @sudo docker version --format \'{{.Server.APIVersion}}\'@
    --
    -- This parameter is not supported for Windows containers.
    ContainerDefinition -> Maybe [Ulimit]
ulimits :: Prelude.Maybe [Ulimit],
    -- | The user to use inside the container. This parameter maps to @User@ in
    -- the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--user@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    --
    -- When running tasks using the @host@ network mode, don\'t run containers
    -- using the root user (UID 0). We recommend using a non-root user for
    -- better security.
    --
    -- You can specify the @user@ using the following formats. If specifying a
    -- UID or GID, you must specify it as a positive integer.
    --
    -- -   @user@
    --
    -- -   @user:group@
    --
    -- -   @uid@
    --
    -- -   @uid:gid@
    --
    -- -   @user:gid@
    --
    -- -   @uid:group@
    --
    -- This parameter is not supported for Windows containers.
    ContainerDefinition -> Maybe Text
user :: Prelude.Maybe Prelude.Text,
    -- | Data volumes to mount from another container. This parameter maps to
    -- @VolumesFrom@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--volumes-from@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    ContainerDefinition -> Maybe [VolumeFrom]
volumesFrom :: Prelude.Maybe [VolumeFrom],
    -- | The working directory to run commands inside the container in. This
    -- parameter maps to @WorkingDir@ in the
    -- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
    -- section of the
    -- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
    -- @--workdir@ option to
    -- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
    ContainerDefinition -> Maybe Text
workingDirectory :: Prelude.Maybe Prelude.Text
  }
  deriving (ContainerDefinition -> ContainerDefinition -> Bool
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]
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
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. 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)

-- |
-- Create a value of 'ContainerDefinition' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'command', 'containerDefinition_command' - The command that\'s passed to the container. This parameter maps to
-- @Cmd@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @COMMAND@ parameter to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- For more information, see
-- <https://docs.docker.com/engine/reference/builder/#cmd>. If there are
-- multiple arguments, each argument is a separated string in the array.
--
-- 'cpu', 'containerDefinition_cpu' - The number of @cpu@ units reserved for the container. This parameter
-- maps to @CpuShares@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--cpu-shares@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This field is optional for tasks using the Fargate launch type, and the
-- only requirement is that the total amount of CPU reserved for all
-- containers within a task be lower than the task-level @cpu@ value.
--
-- You can determine the number of CPU units that are available per EC2
-- instance type by multiplying the vCPUs listed for that instance type on
-- the <http://aws.amazon.com/ec2/instance-types/ Amazon EC2 Instances>
-- detail page by 1,024.
--
-- Linux containers share unallocated CPU units with other containers on
-- the container instance with the same ratio as their allocated amount.
-- For example, if you run a single-container task on a single-core
-- instance type with 512 CPU units specified for that container, and
-- that\'s the only task running on the container instance, that container
-- could use the full 1,024 CPU unit share at any given time. However, if
-- you launched another copy of the same task on that container instance,
-- each task is guaranteed a minimum of 512 CPU units when needed.
-- Moreover, each container could float to higher CPU usage if the other
-- container was not using it. If both tasks were 100% active all of the
-- time, they would be limited to 512 CPU units.
--
-- On Linux container instances, the Docker daemon on the container
-- instance uses the CPU value to calculate the relative CPU share ratios
-- for running containers. For more information, see
-- <https://docs.docker.com/engine/reference/run/#cpu-share-constraint CPU share constraint>
-- in the Docker documentation. The minimum valid CPU share value that the
-- Linux kernel allows is 2. However, the CPU parameter isn\'t required,
-- and you can use CPU values below 2 in your container definitions. For
-- CPU values below 2 (including null), the behavior varies based on your
-- Amazon ECS container agent version:
--
-- -   __Agent versions less than or equal to 1.1.0:__ Null and zero CPU
--     values are passed to Docker as 0, which Docker then converts to
--     1,024 CPU shares. CPU values of 1 are passed to Docker as 1, which
--     the Linux kernel converts to two CPU shares.
--
-- -   __Agent versions greater than or equal to 1.2.0:__ Null, zero, and
--     CPU values of 1 are passed to Docker as 2.
--
-- On Windows container instances, the CPU limit is enforced as an absolute
-- limit, or a quota. Windows containers only have access to the specified
-- amount of CPU that\'s described in the task definition. A null or zero
-- CPU value is passed to Docker as @0@, which Windows interprets as 1% of
-- one CPU.
--
-- 'dependsOn', 'containerDefinition_dependsOn' - The dependencies defined for container startup and shutdown. A container
-- can contain multiple dependencies on other containers in a task
-- definition. When a dependency is defined for container startup, for
-- container shutdown it is reversed.
--
-- For tasks using the EC2 launch type, the container instances require at
-- least version 1.26.0 of the container agent to turn on container
-- dependencies. However, we recommend using the latest container agent
-- version. For information about checking your agent version and updating
-- to the latest version, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html Updating the Amazon ECS Container Agent>
-- in the /Amazon Elastic Container Service Developer Guide/. If you\'re
-- using an Amazon ECS-optimized Linux AMI, your instance needs at least
-- version 1.26.0-1 of the @ecs-init@ package. If your container instances
-- are launched from version @20190301@ or later, then they contain the
-- required versions of the container agent and @ecs-init@. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html Amazon ECS-optimized Linux AMI>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- For tasks using the Fargate launch type, the task or service requires
-- the following platforms:
--
-- -   Linux platform version @1.3.0@ or later.
--
-- -   Windows platform version @1.0.0@ or later.
--
-- 'disableNetworking', 'containerDefinition_disableNetworking' - When this parameter is true, networking is disabled within the
-- container. This parameter maps to @NetworkDisabled@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API>.
--
-- This parameter is not supported for Windows containers.
--
-- 'dnsSearchDomains', 'containerDefinition_dnsSearchDomains' - A list of DNS search domains that are presented to the container. This
-- parameter maps to @DnsSearch@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--dns-search@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter is not supported for Windows containers.
--
-- 'dnsServers', 'containerDefinition_dnsServers' - A list of DNS servers that are presented to the container. This
-- parameter maps to @Dns@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--dns@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter is not supported for Windows containers.
--
-- 'dockerLabels', 'containerDefinition_dockerLabels' - A key\/value map of labels to add to the container. This parameter maps
-- to @Labels@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--label@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- This parameter requires version 1.18 of the Docker Remote API or greater
-- on your container instance. To check the Docker Remote API version on
-- your container instance, log in to your container instance and run the
-- following command:
-- @sudo docker version --format \'{{.Server.APIVersion}}\'@
--
-- 'dockerSecurityOptions', 'containerDefinition_dockerSecurityOptions' - A list of strings to provide custom labels for SELinux and AppArmor
-- multi-level security systems. This field isn\'t valid for containers in
-- tasks using the Fargate launch type.
--
-- With Windows containers, this parameter can be used to reference a
-- credential spec file when configuring a container for Active Directory
-- authentication. For more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html Using gMSAs for Windows Containers>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- This parameter maps to @SecurityOpt@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--security-opt@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- The Amazon ECS container agent running on a container instance must
-- register with the @ECS_SELINUX_CAPABLE=true@ or
-- @ECS_APPARMOR_CAPABLE=true@ environment variables before containers
-- placed on that instance can use these security options. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html Amazon ECS Container Agent Configuration>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- For more information about valid values, see
-- <https://docs.docker.com/engine/reference/run/#security-configuration Docker Run Security Configuration>.
--
-- Valid values: \"no-new-privileges\" | \"apparmor:PROFILE\" |
-- \"label:value\" | \"credentialspec:CredentialSpecFilePath\"
--
-- 'entryPoint', 'containerDefinition_entryPoint' - Early versions of the Amazon ECS container agent don\'t properly handle
-- @entryPoint@ parameters. If you have problems using @entryPoint@, update
-- your container agent or enter your commands and arguments as @command@
-- array items instead.
--
-- The entry point that\'s passed to the container. This parameter maps to
-- @Entrypoint@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--entrypoint@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- For more information, see
-- <https://docs.docker.com/engine/reference/builder/#entrypoint>.
--
-- 'environment', 'containerDefinition_environment' - The environment variables to pass to a container. This parameter maps to
-- @Env@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--env@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- We don\'t recommend that you use plaintext environment variables for
-- sensitive information, such as credential data.
--
-- 'environmentFiles', 'containerDefinition_environmentFiles' - A list of files containing the environment variables to pass to a
-- container. This parameter maps to the @--env-file@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- You can specify up to ten environment files. The file must have a @.env@
-- file extension. Each line in an environment file contains an environment
-- variable in @VARIABLE=VALUE@ format. Lines beginning with @#@ are
-- treated as comments and are ignored. For more information about the
-- environment variable file syntax, see
-- <https://docs.docker.com/compose/env-file/ Declare default environment variables in file>.
--
-- If there are environment variables specified using the @environment@
-- parameter in a container definition, they take precedence over the
-- variables contained within an environment file. If multiple environment
-- files are specified that contain the same variable, they\'re processed
-- from the top down. We recommend that you use unique variable names. For
-- more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html Specifying Environment Variables>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- 'essential', 'containerDefinition_essential' - If the @essential@ parameter of a container is marked as @true@, and
-- that container fails or stops for any reason, all other containers that
-- are part of the task are stopped. If the @essential@ parameter of a
-- container is marked as @false@, its failure doesn\'t affect the rest of
-- the containers in a task. If this parameter is omitted, a container is
-- assumed to be essential.
--
-- All tasks must have at least one essential container. If you have an
-- application that\'s composed of multiple containers, group containers
-- that are used for a common purpose into components, and separate the
-- different components into multiple task definitions. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html Application Architecture>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- 'extraHosts', 'containerDefinition_extraHosts' - A list of hostnames and IP address mappings to append to the
-- @\/etc\/hosts@ file on the container. This parameter maps to
-- @ExtraHosts@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--add-host@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter isn\'t supported for Windows containers or tasks that use
-- the @awsvpc@ network mode.
--
-- 'firelensConfiguration', 'containerDefinition_firelensConfiguration' - The FireLens configuration for the container. This is used to specify
-- and configure a log router for container logs. For more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html Custom Log Routing>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- 'healthCheck', 'containerDefinition_healthCheck' - The container health check command and associated configuration
-- parameters for the container. This parameter maps to @HealthCheck@ in
-- the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @HEALTHCHECK@ parameter of
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- 'hostname', 'containerDefinition_hostname' - The hostname to use for your container. This parameter maps to
-- @Hostname@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--hostname@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- The @hostname@ parameter is not supported if you\'re using the @awsvpc@
-- network mode.
--
-- 'image', 'containerDefinition_image' - The image used to start a container. This string is passed directly to
-- the Docker daemon. By default, images in the Docker Hub registry are
-- available. Other repositories are specified with either
-- @ @/@repository-url@/@\/@/@image@/@:@/@tag@/@ @ or
-- @ @/@repository-url@/@\/@/@image@/@\@@/@digest@/@ @. Up to 255 letters
-- (uppercase and lowercase), numbers, hyphens, underscores, colons,
-- periods, forward slashes, and number signs are allowed. This parameter
-- maps to @Image@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @IMAGE@ parameter of
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- -   When a new task starts, the Amazon ECS container agent pulls the
--     latest version of the specified image and tag for the container to
--     use. However, subsequent updates to a repository image aren\'t
--     propagated to already running tasks.
--
-- -   Images in Amazon ECR repositories can be specified by either using
--     the full @registry\/repository:tag@ or
--     @registry\/repository\@digest@. For example,
--     @012345678910.dkr.ecr.\<region-name>.amazonaws.com\/\<repository-name>:latest@
--     or
--     @012345678910.dkr.ecr.\<region-name>.amazonaws.com\/\<repository-name>\@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE@.
--
-- -   Images in official repositories on Docker Hub use a single name (for
--     example, @ubuntu@ or @mongo@).
--
-- -   Images in other repositories on Docker Hub are qualified with an
--     organization name (for example, @amazon\/amazon-ecs-agent@).
--
-- -   Images in other online repositories are qualified further by a
--     domain name (for example, @quay.io\/assemblyline\/ubuntu@).
--
-- 'interactive', 'containerDefinition_interactive' - When this parameter is @true@, you can deploy containerized applications
-- that require @stdin@ or a @tty@ to be allocated. This parameter maps to
-- @OpenStdin@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--interactive@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- 'links', 'containerDefinition_links' - The @links@ parameter allows containers to communicate with each other
-- without the need for port mappings. This parameter is only supported if
-- the network mode of a task definition is @bridge@. The
-- @name:internalName@ construct is analogous to @name:alias@ in Docker
-- links. Up to 255 letters (uppercase and lowercase), numbers,
-- underscores, and hyphens are allowed. For more information about linking
-- Docker containers, go to
-- <https://docs.docker.com/network/links/ Legacy container links> in the
-- Docker documentation. This parameter maps to @Links@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--link@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter is not supported for Windows containers.
--
-- Containers that are collocated on a single container instance may be
-- able to communicate with each other without requiring links or host port
-- mappings. Network isolation is achieved on the container instance using
-- security groups and VPC settings.
--
-- 'linuxParameters', 'containerDefinition_linuxParameters' - Linux-specific modifications that are applied to the container, such as
-- Linux kernel capabilities. For more information see KernelCapabilities.
--
-- This parameter is not supported for Windows containers.
--
-- 'logConfiguration', 'containerDefinition_logConfiguration' - The log configuration specification for the container.
--
-- This parameter maps to @LogConfig@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--log-driver@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- By default, containers use the same logging driver that the Docker
-- daemon uses. However the container can use a different logging driver
-- than the Docker daemon by specifying a log driver with this parameter in
-- the container definition. To use a different logging driver for a
-- container, the log system must be configured properly on the container
-- instance (or on a different log server for remote logging options). For
-- more information about the options for different supported log drivers,
-- see
-- <https://docs.docker.com/engine/admin/logging/overview/ Configure logging drivers>
-- in the Docker documentation.
--
-- Amazon ECS currently supports a subset of the logging drivers available
-- to the Docker daemon (shown in the LogConfiguration data type).
-- Additional log drivers may be available in future releases of the Amazon
-- ECS container agent.
--
-- This parameter requires version 1.18 of the Docker Remote API or greater
-- on your container instance. To check the Docker Remote API version on
-- your container instance, log in to your container instance and run the
-- following command:
-- @sudo docker version --format \'{{.Server.APIVersion}}\'@
--
-- The Amazon ECS container agent running on a container instance must
-- register the logging drivers available on that instance with the
-- @ECS_AVAILABLE_LOGGING_DRIVERS@ environment variable before containers
-- placed on that instance can use these log configuration options. For
-- more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html Amazon ECS Container Agent Configuration>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- 'memory', 'containerDefinition_memory' - The amount (in MiB) of memory to present to the container. If your
-- container attempts to exceed the memory specified here, the container is
-- killed. The total amount of memory reserved for all containers within a
-- task must be lower than the task @memory@ value, if one is specified.
-- This parameter maps to @Memory@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--memory@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- If using the Fargate launch type, this parameter is optional.
--
-- If using the EC2 launch type, you must specify either a task-level
-- memory value or a container-level memory value. If you specify both a
-- container-level @memory@ and @memoryReservation@ value, @memory@ must be
-- greater than @memoryReservation@. If you specify @memoryReservation@,
-- then that value is subtracted from the available memory resources for
-- the container instance where the container is placed. Otherwise, the
-- value of @memory@ is used.
--
-- The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory
-- for a container. So, don\'t specify less than 6 MiB of memory for your
-- containers.
--
-- The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of
-- memory for a container. So, don\'t specify less than 4 MiB of memory for
-- your containers.
--
-- 'memoryReservation', 'containerDefinition_memoryReservation' - The soft limit (in MiB) of memory to reserve for the container. When
-- system memory is under heavy contention, Docker attempts to keep the
-- container memory to this soft limit. However, your container can consume
-- more memory when it needs to, up to either the hard limit specified with
-- the @memory@ parameter (if applicable), or all of the available memory
-- on the container instance, whichever comes first. This parameter maps to
-- @MemoryReservation@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--memory-reservation@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- If a task-level memory value is not specified, you must specify a
-- non-zero integer for one or both of @memory@ or @memoryReservation@ in a
-- container definition. If you specify both, @memory@ must be greater than
-- @memoryReservation@. If you specify @memoryReservation@, then that value
-- is subtracted from the available memory resources for the container
-- instance where the container is placed. Otherwise, the value of @memory@
-- is used.
--
-- For example, if your container normally uses 128 MiB of memory, but
-- occasionally bursts to 256 MiB of memory for short periods of time, you
-- can set a @memoryReservation@ of 128 MiB, and a @memory@ hard limit of
-- 300 MiB. This configuration would allow the container to only reserve
-- 128 MiB of memory from the remaining resources on the container
-- instance, but also allow the container to consume more memory resources
-- when needed.
--
-- The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory
-- for a container. So, don\'t specify less than 6 MiB of memory for your
-- containers.
--
-- The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of
-- memory for a container. So, don\'t specify less than 4 MiB of memory for
-- your containers.
--
-- 'mountPoints', 'containerDefinition_mountPoints' - The mount points for data volumes in your container.
--
-- This parameter maps to @Volumes@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--volume@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- Windows containers can mount whole directories on the same drive as
-- @$env:ProgramData@. Windows containers can\'t mount directories on a
-- different drive, and mount point can\'t be across drives.
--
-- 'name', 'containerDefinition_name' - The name of a container. If you\'re linking multiple containers together
-- in a task definition, the @name@ of one container can be entered in the
-- @links@ of another container to connect the containers. Up to 255
-- letters (uppercase and lowercase), numbers, underscores, and hyphens are
-- allowed. This parameter maps to @name@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--name@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- 'portMappings', 'containerDefinition_portMappings' - The list of port mappings for the container. Port mappings allow
-- containers to access ports on the host container instance to send or
-- receive traffic.
--
-- For task definitions that use the @awsvpc@ network mode, only specify
-- the @containerPort@. The @hostPort@ can be left blank or it must be the
-- same value as the @containerPort@.
--
-- Port mappings on Windows use the @NetNAT@ gateway address rather than
-- @localhost@. There\'s no loopback for port mappings on Windows, so you
-- can\'t access a container\'s mapped port from the host itself.
--
-- This parameter maps to @PortBindings@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--publish@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- If the network mode of a task definition is set to @none@, then you
-- can\'t specify port mappings. If the network mode of a task definition
-- is set to @host@, then host ports must either be undefined or they must
-- match the container port in the port mapping.
--
-- After a task reaches the @RUNNING@ status, manual and automatic host and
-- container port assignments are visible in the __Network Bindings__
-- section of a container description for a selected task in the Amazon ECS
-- console. The assignments are also visible in the @networkBindings@
-- section DescribeTasks responses.
--
-- 'privileged', 'containerDefinition_privileged' - When this parameter is true, the container is given elevated privileges
-- on the host container instance (similar to the @root@ user). This
-- parameter maps to @Privileged@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--privileged@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter is not supported for Windows containers or tasks run on
-- Fargate.
--
-- 'pseudoTerminal', 'containerDefinition_pseudoTerminal' - When this parameter is @true@, a TTY is allocated. This parameter maps
-- to @Tty@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--tty@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- 'readonlyRootFilesystem', 'containerDefinition_readonlyRootFilesystem' - When this parameter is true, the container is given read-only access to
-- its root file system. This parameter maps to @ReadonlyRootfs@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--read-only@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter is not supported for Windows containers.
--
-- 'repositoryCredentials', 'containerDefinition_repositoryCredentials' - The private repository authentication credentials to use.
--
-- 'resourceRequirements', 'containerDefinition_resourceRequirements' - The type and amount of a resource to assign to a container. The only
-- supported resource is a GPU.
--
-- 'secrets', 'containerDefinition_secrets' - The secrets to pass to the container. For more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html Specifying Sensitive Data>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- 'startTimeout', 'containerDefinition_startTimeout' - Time duration (in seconds) to wait before giving up on resolving
-- dependencies for a container. For example, you specify two containers in
-- a task definition with containerA having a dependency on containerB
-- reaching a @COMPLETE@, @SUCCESS@, or @HEALTHY@ status. If a
-- @startTimeout@ value is specified for containerB and it doesn\'t reach
-- the desired status within that time then containerA gives up and not
-- start. This results in the task transitioning to a @STOPPED@ state.
--
-- When the @ECS_CONTAINER_START_TIMEOUT@ container agent configuration
-- variable is used, it\'s enforced independently from this start timeout
-- value.
--
-- For tasks using the Fargate launch type, the task or service requires
-- the following platforms:
--
-- -   Linux platform version @1.3.0@ or later.
--
-- -   Windows platform version @1.0.0@ or later.
--
-- For tasks using the EC2 launch type, your container instances require at
-- least version @1.26.0@ of the container agent to use a container start
-- timeout value. However, we recommend using the latest container agent
-- version. For information about checking your agent version and updating
-- to the latest version, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html Updating the Amazon ECS Container Agent>
-- in the /Amazon Elastic Container Service Developer Guide/. If you\'re
-- using an Amazon ECS-optimized Linux AMI, your instance needs at least
-- version @1.26.0-1@ of the @ecs-init@ package. If your container
-- instances are launched from version @20190301@ or later, then they
-- contain the required versions of the container agent and @ecs-init@. For
-- more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html Amazon ECS-optimized Linux AMI>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- 'stopTimeout', 'containerDefinition_stopTimeout' - Time duration (in seconds) to wait before the container is forcefully
-- killed if it doesn\'t exit normally on its own.
--
-- For tasks using the Fargate launch type, the task or service requires
-- the following platforms:
--
-- -   Linux platform version @1.3.0@ or later.
--
-- -   Windows platform version @1.0.0@ or later.
--
-- The max stop timeout value is 120 seconds and if the parameter is not
-- specified, the default value of 30 seconds is used.
--
-- For tasks that use the EC2 launch type, if the @stopTimeout@ parameter
-- isn\'t specified, the value set for the Amazon ECS container agent
-- configuration variable @ECS_CONTAINER_STOP_TIMEOUT@ is used. If neither
-- the @stopTimeout@ parameter or the @ECS_CONTAINER_STOP_TIMEOUT@ agent
-- configuration variable are set, then the default values of 30 seconds
-- for Linux containers and 30 seconds on Windows containers are used. Your
-- container instances require at least version 1.26.0 of the container
-- agent to use a container stop timeout value. However, we recommend using
-- the latest container agent version. For information about checking your
-- agent version and updating to the latest version, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html Updating the Amazon ECS Container Agent>
-- in the /Amazon Elastic Container Service Developer Guide/. If you\'re
-- using an Amazon ECS-optimized Linux AMI, your instance needs at least
-- version 1.26.0-1 of the @ecs-init@ package. If your container instances
-- are launched from version @20190301@ or later, then they contain the
-- required versions of the container agent and @ecs-init@. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html Amazon ECS-optimized Linux AMI>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- 'systemControls', 'containerDefinition_systemControls' - A list of namespaced kernel parameters to set in the container. This
-- parameter maps to @Sysctls@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--sysctl@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- We don\'t recommended that you specify network-related @systemControls@
-- parameters for multiple containers in a single task that also uses
-- either the @awsvpc@ or @host@ network modes. For tasks that use the
-- @awsvpc@ network mode, the container that\'s started last determines
-- which @systemControls@ parameters take effect. For tasks that use the
-- @host@ network mode, it changes the container instance\'s namespaced
-- kernel parameters as well as the containers.
--
-- 'ulimits', 'containerDefinition_ulimits' - A list of @ulimits@ to set in the container. If a @ulimit@ value is
-- specified in a task definition, it overrides the default values set by
-- Docker. This parameter maps to @Ulimits@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--ulimit@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- Valid naming values are displayed in the Ulimit data type.
--
-- Amazon ECS tasks hosted on Fargate use the default resource limit values
-- set by the operating system with the exception of the @nofile@ resource
-- limit parameter which Fargate overrides. The @nofile@ resource limit
-- sets a restriction on the number of open files that a container can use.
-- The default @nofile@ soft limit is @1024@ and hard limit is @4096@.
--
-- This parameter requires version 1.18 of the Docker Remote API or greater
-- on your container instance. To check the Docker Remote API version on
-- your container instance, log in to your container instance and run the
-- following command:
-- @sudo docker version --format \'{{.Server.APIVersion}}\'@
--
-- This parameter is not supported for Windows containers.
--
-- 'user', 'containerDefinition_user' - The user to use inside the container. This parameter maps to @User@ in
-- the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--user@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- When running tasks using the @host@ network mode, don\'t run containers
-- using the root user (UID 0). We recommend using a non-root user for
-- better security.
--
-- You can specify the @user@ using the following formats. If specifying a
-- UID or GID, you must specify it as a positive integer.
--
-- -   @user@
--
-- -   @user:group@
--
-- -   @uid@
--
-- -   @uid:gid@
--
-- -   @user:gid@
--
-- -   @uid:group@
--
-- This parameter is not supported for Windows containers.
--
-- 'volumesFrom', 'containerDefinition_volumesFrom' - Data volumes to mount from another container. This parameter maps to
-- @VolumesFrom@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--volumes-from@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- 'workingDirectory', 'containerDefinition_workingDirectory' - The working directory to run commands inside the container in. This
-- parameter maps to @WorkingDir@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--workdir@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
newContainerDefinition ::
  ContainerDefinition
newContainerDefinition :: ContainerDefinition
newContainerDefinition =
  ContainerDefinition'
    { $sel:command:ContainerDefinition' :: Maybe [Text]
command = forall a. Maybe a
Prelude.Nothing,
      $sel:cpu:ContainerDefinition' :: Maybe Int
cpu = forall a. Maybe a
Prelude.Nothing,
      $sel:dependsOn:ContainerDefinition' :: Maybe [ContainerDependency]
dependsOn = forall a. Maybe a
Prelude.Nothing,
      $sel:disableNetworking:ContainerDefinition' :: Maybe Bool
disableNetworking = forall a. Maybe a
Prelude.Nothing,
      $sel:dnsSearchDomains:ContainerDefinition' :: Maybe [Text]
dnsSearchDomains = forall a. Maybe a
Prelude.Nothing,
      $sel:dnsServers:ContainerDefinition' :: Maybe [Text]
dnsServers = forall a. Maybe a
Prelude.Nothing,
      $sel:dockerLabels:ContainerDefinition' :: Maybe (HashMap Text Text)
dockerLabels = forall a. Maybe a
Prelude.Nothing,
      $sel:dockerSecurityOptions:ContainerDefinition' :: Maybe [Text]
dockerSecurityOptions = forall a. Maybe a
Prelude.Nothing,
      $sel:entryPoint:ContainerDefinition' :: Maybe [Text]
entryPoint = forall a. Maybe a
Prelude.Nothing,
      $sel:environment:ContainerDefinition' :: Maybe [KeyValuePair]
environment = forall a. Maybe a
Prelude.Nothing,
      $sel:environmentFiles:ContainerDefinition' :: Maybe [EnvironmentFile]
environmentFiles = forall a. Maybe a
Prelude.Nothing,
      $sel:essential:ContainerDefinition' :: Maybe Bool
essential = forall a. Maybe a
Prelude.Nothing,
      $sel:extraHosts:ContainerDefinition' :: Maybe [HostEntry]
extraHosts = forall a. Maybe a
Prelude.Nothing,
      $sel:firelensConfiguration:ContainerDefinition' :: Maybe FirelensConfiguration
firelensConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:healthCheck:ContainerDefinition' :: Maybe HealthCheck
healthCheck = forall a. Maybe a
Prelude.Nothing,
      $sel:hostname:ContainerDefinition' :: Maybe Text
hostname = forall a. Maybe a
Prelude.Nothing,
      $sel:image:ContainerDefinition' :: Maybe Text
image = forall a. Maybe a
Prelude.Nothing,
      $sel:interactive:ContainerDefinition' :: Maybe Bool
interactive = forall a. Maybe a
Prelude.Nothing,
      $sel:links:ContainerDefinition' :: Maybe [Text]
links = forall a. Maybe a
Prelude.Nothing,
      $sel:linuxParameters:ContainerDefinition' :: Maybe LinuxParameters
linuxParameters = forall a. Maybe a
Prelude.Nothing,
      $sel:logConfiguration:ContainerDefinition' :: Maybe LogConfiguration
logConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:memory:ContainerDefinition' :: Maybe Int
memory = forall a. Maybe a
Prelude.Nothing,
      $sel:memoryReservation:ContainerDefinition' :: Maybe Int
memoryReservation = forall a. Maybe a
Prelude.Nothing,
      $sel:mountPoints:ContainerDefinition' :: Maybe [MountPoint]
mountPoints = forall a. Maybe a
Prelude.Nothing,
      $sel:name:ContainerDefinition' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:portMappings:ContainerDefinition' :: Maybe [PortMapping]
portMappings = forall a. Maybe a
Prelude.Nothing,
      $sel:privileged:ContainerDefinition' :: Maybe Bool
privileged = forall a. Maybe a
Prelude.Nothing,
      $sel:pseudoTerminal:ContainerDefinition' :: Maybe Bool
pseudoTerminal = forall a. Maybe a
Prelude.Nothing,
      $sel:readonlyRootFilesystem:ContainerDefinition' :: Maybe Bool
readonlyRootFilesystem = forall a. Maybe a
Prelude.Nothing,
      $sel:repositoryCredentials:ContainerDefinition' :: Maybe RepositoryCredentials
repositoryCredentials = forall a. Maybe a
Prelude.Nothing,
      $sel:resourceRequirements:ContainerDefinition' :: Maybe [ResourceRequirement]
resourceRequirements = forall a. Maybe a
Prelude.Nothing,
      $sel:secrets:ContainerDefinition' :: Maybe [Secret]
secrets = forall a. Maybe a
Prelude.Nothing,
      $sel:startTimeout:ContainerDefinition' :: Maybe Int
startTimeout = forall a. Maybe a
Prelude.Nothing,
      $sel:stopTimeout:ContainerDefinition' :: Maybe Int
stopTimeout = forall a. Maybe a
Prelude.Nothing,
      $sel:systemControls:ContainerDefinition' :: Maybe [SystemControl]
systemControls = forall a. Maybe a
Prelude.Nothing,
      $sel:ulimits:ContainerDefinition' :: Maybe [Ulimit]
ulimits = forall a. Maybe a
Prelude.Nothing,
      $sel:user:ContainerDefinition' :: Maybe Text
user = forall a. Maybe a
Prelude.Nothing,
      $sel:volumesFrom:ContainerDefinition' :: Maybe [VolumeFrom]
volumesFrom = forall a. Maybe a
Prelude.Nothing,
      $sel:workingDirectory:ContainerDefinition' :: Maybe Text
workingDirectory = forall a. Maybe a
Prelude.Nothing
    }

-- | The command that\'s passed to the container. This parameter maps to
-- @Cmd@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @COMMAND@ parameter to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- For more information, see
-- <https://docs.docker.com/engine/reference/builder/#cmd>. If there are
-- multiple arguments, each argument is a separated string in the array.
containerDefinition_command :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_command :: Lens' ContainerDefinition (Maybe [Text])
containerDefinition_command = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The number of @cpu@ units reserved for the container. This parameter
-- maps to @CpuShares@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--cpu-shares@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This field is optional for tasks using the Fargate launch type, and the
-- only requirement is that the total amount of CPU reserved for all
-- containers within a task be lower than the task-level @cpu@ value.
--
-- You can determine the number of CPU units that are available per EC2
-- instance type by multiplying the vCPUs listed for that instance type on
-- the <http://aws.amazon.com/ec2/instance-types/ Amazon EC2 Instances>
-- detail page by 1,024.
--
-- Linux containers share unallocated CPU units with other containers on
-- the container instance with the same ratio as their allocated amount.
-- For example, if you run a single-container task on a single-core
-- instance type with 512 CPU units specified for that container, and
-- that\'s the only task running on the container instance, that container
-- could use the full 1,024 CPU unit share at any given time. However, if
-- you launched another copy of the same task on that container instance,
-- each task is guaranteed a minimum of 512 CPU units when needed.
-- Moreover, each container could float to higher CPU usage if the other
-- container was not using it. If both tasks were 100% active all of the
-- time, they would be limited to 512 CPU units.
--
-- On Linux container instances, the Docker daemon on the container
-- instance uses the CPU value to calculate the relative CPU share ratios
-- for running containers. For more information, see
-- <https://docs.docker.com/engine/reference/run/#cpu-share-constraint CPU share constraint>
-- in the Docker documentation. The minimum valid CPU share value that the
-- Linux kernel allows is 2. However, the CPU parameter isn\'t required,
-- and you can use CPU values below 2 in your container definitions. For
-- CPU values below 2 (including null), the behavior varies based on your
-- Amazon ECS container agent version:
--
-- -   __Agent versions less than or equal to 1.1.0:__ Null and zero CPU
--     values are passed to Docker as 0, which Docker then converts to
--     1,024 CPU shares. CPU values of 1 are passed to Docker as 1, which
--     the Linux kernel converts to two CPU shares.
--
-- -   __Agent versions greater than or equal to 1.2.0:__ Null, zero, and
--     CPU values of 1 are passed to Docker as 2.
--
-- On Windows container instances, the CPU limit is enforced as an absolute
-- limit, or a quota. Windows containers only have access to the specified
-- amount of CPU that\'s described in the task definition. A null or zero
-- CPU value is passed to Docker as @0@, which Windows interprets as 1% of
-- one CPU.
containerDefinition_cpu :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Int)
containerDefinition_cpu :: Lens' ContainerDefinition (Maybe Int)
containerDefinition_cpu = 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)

-- | The dependencies defined for container startup and shutdown. A container
-- can contain multiple dependencies on other containers in a task
-- definition. When a dependency is defined for container startup, for
-- container shutdown it is reversed.
--
-- For tasks using the EC2 launch type, the container instances require at
-- least version 1.26.0 of the container agent to turn on container
-- dependencies. However, we recommend using the latest container agent
-- version. For information about checking your agent version and updating
-- to the latest version, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html Updating the Amazon ECS Container Agent>
-- in the /Amazon Elastic Container Service Developer Guide/. If you\'re
-- using an Amazon ECS-optimized Linux AMI, your instance needs at least
-- version 1.26.0-1 of the @ecs-init@ package. If your container instances
-- are launched from version @20190301@ or later, then they contain the
-- required versions of the container agent and @ecs-init@. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html Amazon ECS-optimized Linux AMI>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- For tasks using the Fargate launch type, the task or service requires
-- the following platforms:
--
-- -   Linux platform version @1.3.0@ or later.
--
-- -   Windows platform version @1.0.0@ or later.
containerDefinition_dependsOn :: Lens.Lens' ContainerDefinition (Prelude.Maybe [ContainerDependency])
containerDefinition_dependsOn :: Lens' ContainerDefinition (Maybe [ContainerDependency])
containerDefinition_dependsOn = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | When this parameter is true, networking is disabled within the
-- container. This parameter maps to @NetworkDisabled@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API>.
--
-- This parameter is not supported for Windows containers.
containerDefinition_disableNetworking :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_disableNetworking :: Lens' ContainerDefinition (Maybe Bool)
containerDefinition_disableNetworking = 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)

-- | A list of DNS search domains that are presented to the container. This
-- parameter maps to @DnsSearch@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--dns-search@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter is not supported for Windows containers.
containerDefinition_dnsSearchDomains :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_dnsSearchDomains :: Lens' ContainerDefinition (Maybe [Text])
containerDefinition_dnsSearchDomains = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of DNS servers that are presented to the container. This
-- parameter maps to @Dns@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--dns@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter is not supported for Windows containers.
containerDefinition_dnsServers :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_dnsServers :: Lens' ContainerDefinition (Maybe [Text])
containerDefinition_dnsServers = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A key\/value map of labels to add to the container. This parameter maps
-- to @Labels@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--label@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- This parameter requires version 1.18 of the Docker Remote API or greater
-- on your container instance. To check the Docker Remote API version on
-- your container instance, log in to your container instance and run the
-- following command:
-- @sudo docker version --format \'{{.Server.APIVersion}}\'@
containerDefinition_dockerLabels :: Lens.Lens' ContainerDefinition (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
containerDefinition_dockerLabels :: Lens' ContainerDefinition (Maybe (HashMap Text Text))
containerDefinition_dockerLabels = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of strings to provide custom labels for SELinux and AppArmor
-- multi-level security systems. This field isn\'t valid for containers in
-- tasks using the Fargate launch type.
--
-- With Windows containers, this parameter can be used to reference a
-- credential spec file when configuring a container for Active Directory
-- authentication. For more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/windows-gmsa.html Using gMSAs for Windows Containers>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- This parameter maps to @SecurityOpt@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--security-opt@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- The Amazon ECS container agent running on a container instance must
-- register with the @ECS_SELINUX_CAPABLE=true@ or
-- @ECS_APPARMOR_CAPABLE=true@ environment variables before containers
-- placed on that instance can use these security options. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html Amazon ECS Container Agent Configuration>
-- in the /Amazon Elastic Container Service Developer Guide/.
--
-- For more information about valid values, see
-- <https://docs.docker.com/engine/reference/run/#security-configuration Docker Run Security Configuration>.
--
-- Valid values: \"no-new-privileges\" | \"apparmor:PROFILE\" |
-- \"label:value\" | \"credentialspec:CredentialSpecFilePath\"
containerDefinition_dockerSecurityOptions :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_dockerSecurityOptions :: Lens' ContainerDefinition (Maybe [Text])
containerDefinition_dockerSecurityOptions = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Early versions of the Amazon ECS container agent don\'t properly handle
-- @entryPoint@ parameters. If you have problems using @entryPoint@, update
-- your container agent or enter your commands and arguments as @command@
-- array items instead.
--
-- The entry point that\'s passed to the container. This parameter maps to
-- @Entrypoint@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--entrypoint@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- For more information, see
-- <https://docs.docker.com/engine/reference/builder/#entrypoint>.
containerDefinition_entryPoint :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_entryPoint :: Lens' ContainerDefinition (Maybe [Text])
containerDefinition_entryPoint = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The environment variables to pass to a container. This parameter maps to
-- @Env@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--env@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- We don\'t recommend that you use plaintext environment variables for
-- sensitive information, such as credential data.
containerDefinition_environment :: Lens.Lens' ContainerDefinition (Prelude.Maybe [KeyValuePair])
containerDefinition_environment :: Lens' ContainerDefinition (Maybe [KeyValuePair])
containerDefinition_environment = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of files containing the environment variables to pass to a
-- container. This parameter maps to the @--env-file@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- You can specify up to ten environment files. The file must have a @.env@
-- file extension. Each line in an environment file contains an environment
-- variable in @VARIABLE=VALUE@ format. Lines beginning with @#@ are
-- treated as comments and are ignored. For more information about the
-- environment variable file syntax, see
-- <https://docs.docker.com/compose/env-file/ Declare default environment variables in file>.
--
-- If there are environment variables specified using the @environment@
-- parameter in a container definition, they take precedence over the
-- variables contained within an environment file. If multiple environment
-- files are specified that contain the same variable, they\'re processed
-- from the top down. We recommend that you use unique variable names. For
-- more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html Specifying Environment Variables>
-- in the /Amazon Elastic Container Service Developer Guide/.
containerDefinition_environmentFiles :: Lens.Lens' ContainerDefinition (Prelude.Maybe [EnvironmentFile])
containerDefinition_environmentFiles :: Lens' ContainerDefinition (Maybe [EnvironmentFile])
containerDefinition_environmentFiles = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | If the @essential@ parameter of a container is marked as @true@, and
-- that container fails or stops for any reason, all other containers that
-- are part of the task are stopped. If the @essential@ parameter of a
-- container is marked as @false@, its failure doesn\'t affect the rest of
-- the containers in a task. If this parameter is omitted, a container is
-- assumed to be essential.
--
-- All tasks must have at least one essential container. If you have an
-- application that\'s composed of multiple containers, group containers
-- that are used for a common purpose into components, and separate the
-- different components into multiple task definitions. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/application_architecture.html Application Architecture>
-- in the /Amazon Elastic Container Service Developer Guide/.
containerDefinition_essential :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_essential :: Lens' ContainerDefinition (Maybe Bool)
containerDefinition_essential = 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)

-- | A list of hostnames and IP address mappings to append to the
-- @\/etc\/hosts@ file on the container. This parameter maps to
-- @ExtraHosts@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--add-host@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter isn\'t supported for Windows containers or tasks that use
-- the @awsvpc@ network mode.
containerDefinition_extraHosts :: Lens.Lens' ContainerDefinition (Prelude.Maybe [HostEntry])
containerDefinition_extraHosts :: Lens' ContainerDefinition (Maybe [HostEntry])
containerDefinition_extraHosts = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The FireLens configuration for the container. This is used to specify
-- and configure a log router for container logs. For more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html Custom Log Routing>
-- in the /Amazon Elastic Container Service Developer Guide/.
containerDefinition_firelensConfiguration :: Lens.Lens' ContainerDefinition (Prelude.Maybe FirelensConfiguration)
containerDefinition_firelensConfiguration :: Lens' ContainerDefinition (Maybe FirelensConfiguration)
containerDefinition_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)

-- | The container health check command and associated configuration
-- parameters for the container. This parameter maps to @HealthCheck@ in
-- the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @HEALTHCHECK@ parameter of
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
containerDefinition_healthCheck :: Lens.Lens' ContainerDefinition (Prelude.Maybe HealthCheck)
containerDefinition_healthCheck :: Lens' ContainerDefinition (Maybe HealthCheck)
containerDefinition_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)

-- | The hostname to use for your container. This parameter maps to
-- @Hostname@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--hostname@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- The @hostname@ parameter is not supported if you\'re using the @awsvpc@
-- network mode.
containerDefinition_hostname :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Text)
containerDefinition_hostname :: Lens' ContainerDefinition (Maybe Text)
containerDefinition_hostname = 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)

-- | The image used to start a container. This string is passed directly to
-- the Docker daemon. By default, images in the Docker Hub registry are
-- available. Other repositories are specified with either
-- @ @/@repository-url@/@\/@/@image@/@:@/@tag@/@ @ or
-- @ @/@repository-url@/@\/@/@image@/@\@@/@digest@/@ @. Up to 255 letters
-- (uppercase and lowercase), numbers, hyphens, underscores, colons,
-- periods, forward slashes, and number signs are allowed. This parameter
-- maps to @Image@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @IMAGE@ parameter of
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- -   When a new task starts, the Amazon ECS container agent pulls the
--     latest version of the specified image and tag for the container to
--     use. However, subsequent updates to a repository image aren\'t
--     propagated to already running tasks.
--
-- -   Images in Amazon ECR repositories can be specified by either using
--     the full @registry\/repository:tag@ or
--     @registry\/repository\@digest@. For example,
--     @012345678910.dkr.ecr.\<region-name>.amazonaws.com\/\<repository-name>:latest@
--     or
--     @012345678910.dkr.ecr.\<region-name>.amazonaws.com\/\<repository-name>\@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE@.
--
-- -   Images in official repositories on Docker Hub use a single name (for
--     example, @ubuntu@ or @mongo@).
--
-- -   Images in other repositories on Docker Hub are qualified with an
--     organization name (for example, @amazon\/amazon-ecs-agent@).
--
-- -   Images in other online repositories are qualified further by a
--     domain name (for example, @quay.io\/assemblyline\/ubuntu@).
containerDefinition_image :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Text)
containerDefinition_image :: Lens' ContainerDefinition (Maybe Text)
containerDefinition_image = 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)

-- | When this parameter is @true@, you can deploy containerized applications
-- that require @stdin@ or a @tty@ to be allocated. This parameter maps to
-- @OpenStdin@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--interactive@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
containerDefinition_interactive :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_interactive :: Lens' ContainerDefinition (Maybe Bool)
containerDefinition_interactive = 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)

-- | The @links@ parameter allows containers to communicate with each other
-- without the need for port mappings. This parameter is only supported if
-- the network mode of a task definition is @bridge@. The
-- @name:internalName@ construct is analogous to @name:alias@ in Docker
-- links. Up to 255 letters (uppercase and lowercase), numbers,
-- underscores, and hyphens are allowed. For more information about linking
-- Docker containers, go to
-- <https://docs.docker.com/network/links/ Legacy container links> in the
-- Docker documentation. This parameter maps to @Links@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--link@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter is not supported for Windows containers.
--
-- Containers that are collocated on a single container instance may be
-- able to communicate with each other without requiring links or host port
-- mappings. Network isolation is achieved on the container instance using
-- security groups and VPC settings.
containerDefinition_links :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Prelude.Text])
containerDefinition_links :: Lens' ContainerDefinition (Maybe [Text])
containerDefinition_links = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Linux-specific modifications that are applied to the container, such as
-- Linux kernel capabilities. For more information see KernelCapabilities.
--
-- This parameter is not supported for Windows containers.
containerDefinition_linuxParameters :: Lens.Lens' ContainerDefinition (Prelude.Maybe LinuxParameters)
containerDefinition_linuxParameters :: Lens' ContainerDefinition (Maybe LinuxParameters)
containerDefinition_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)

-- | The log configuration specification for the container.
--
-- This parameter maps to @LogConfig@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--log-driver@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- By default, containers use the same logging driver that the Docker
-- daemon uses. However the container can use a different logging driver
-- than the Docker daemon by specifying a log driver with this parameter in
-- the container definition. To use a different logging driver for a
-- container, the log system must be configured properly on the container
-- instance (or on a different log server for remote logging options). For
-- more information about the options for different supported log drivers,
-- see
-- <https://docs.docker.com/engine/admin/logging/overview/ Configure logging drivers>
-- in the Docker documentation.
--
-- Amazon ECS currently supports a subset of the logging drivers available
-- to the Docker daemon (shown in the LogConfiguration data type).
-- Additional log drivers may be available in future releases of the Amazon
-- ECS container agent.
--
-- This parameter requires version 1.18 of the Docker Remote API or greater
-- on your container instance. To check the Docker Remote API version on
-- your container instance, log in to your container instance and run the
-- following command:
-- @sudo docker version --format \'{{.Server.APIVersion}}\'@
--
-- The Amazon ECS container agent running on a container instance must
-- register the logging drivers available on that instance with the
-- @ECS_AVAILABLE_LOGGING_DRIVERS@ environment variable before containers
-- placed on that instance can use these log configuration options. For
-- more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html Amazon ECS Container Agent Configuration>
-- in the /Amazon Elastic Container Service Developer Guide/.
containerDefinition_logConfiguration :: Lens.Lens' ContainerDefinition (Prelude.Maybe LogConfiguration)
containerDefinition_logConfiguration :: Lens' ContainerDefinition (Maybe LogConfiguration)
containerDefinition_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)

-- | The amount (in MiB) of memory to present to the container. If your
-- container attempts to exceed the memory specified here, the container is
-- killed. The total amount of memory reserved for all containers within a
-- task must be lower than the task @memory@ value, if one is specified.
-- This parameter maps to @Memory@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--memory@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- If using the Fargate launch type, this parameter is optional.
--
-- If using the EC2 launch type, you must specify either a task-level
-- memory value or a container-level memory value. If you specify both a
-- container-level @memory@ and @memoryReservation@ value, @memory@ must be
-- greater than @memoryReservation@. If you specify @memoryReservation@,
-- then that value is subtracted from the available memory resources for
-- the container instance where the container is placed. Otherwise, the
-- value of @memory@ is used.
--
-- The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory
-- for a container. So, don\'t specify less than 6 MiB of memory for your
-- containers.
--
-- The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of
-- memory for a container. So, don\'t specify less than 4 MiB of memory for
-- your containers.
containerDefinition_memory :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Int)
containerDefinition_memory :: Lens' ContainerDefinition (Maybe Int)
containerDefinition_memory = 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)

-- | The soft limit (in MiB) of memory to reserve for the container. When
-- system memory is under heavy contention, Docker attempts to keep the
-- container memory to this soft limit. However, your container can consume
-- more memory when it needs to, up to either the hard limit specified with
-- the @memory@ parameter (if applicable), or all of the available memory
-- on the container instance, whichever comes first. This parameter maps to
-- @MemoryReservation@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--memory-reservation@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- If a task-level memory value is not specified, you must specify a
-- non-zero integer for one or both of @memory@ or @memoryReservation@ in a
-- container definition. If you specify both, @memory@ must be greater than
-- @memoryReservation@. If you specify @memoryReservation@, then that value
-- is subtracted from the available memory resources for the container
-- instance where the container is placed. Otherwise, the value of @memory@
-- is used.
--
-- For example, if your container normally uses 128 MiB of memory, but
-- occasionally bursts to 256 MiB of memory for short periods of time, you
-- can set a @memoryReservation@ of 128 MiB, and a @memory@ hard limit of
-- 300 MiB. This configuration would allow the container to only reserve
-- 128 MiB of memory from the remaining resources on the container
-- instance, but also allow the container to consume more memory resources
-- when needed.
--
-- The Docker 20.10.0 or later daemon reserves a minimum of 6 MiB of memory
-- for a container. So, don\'t specify less than 6 MiB of memory for your
-- containers.
--
-- The Docker 19.03.13-ce or earlier daemon reserves a minimum of 4 MiB of
-- memory for a container. So, don\'t specify less than 4 MiB of memory for
-- your containers.
containerDefinition_memoryReservation :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Int)
containerDefinition_memoryReservation :: Lens' ContainerDefinition (Maybe Int)
containerDefinition_memoryReservation = 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)

-- | The mount points for data volumes in your container.
--
-- This parameter maps to @Volumes@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--volume@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- Windows containers can mount whole directories on the same drive as
-- @$env:ProgramData@. Windows containers can\'t mount directories on a
-- different drive, and mount point can\'t be across drives.
containerDefinition_mountPoints :: Lens.Lens' ContainerDefinition (Prelude.Maybe [MountPoint])
containerDefinition_mountPoints :: Lens' ContainerDefinition (Maybe [MountPoint])
containerDefinition_mountPoints = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of a container. If you\'re linking multiple containers together
-- in a task definition, the @name@ of one container can be entered in the
-- @links@ of another container to connect the containers. Up to 255
-- letters (uppercase and lowercase), numbers, underscores, and hyphens are
-- allowed. This parameter maps to @name@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--name@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
containerDefinition_name :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Text)
containerDefinition_name :: Lens' ContainerDefinition (Maybe Text)
containerDefinition_name = 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)

-- | The list of port mappings for the container. Port mappings allow
-- containers to access ports on the host container instance to send or
-- receive traffic.
--
-- For task definitions that use the @awsvpc@ network mode, only specify
-- the @containerPort@. The @hostPort@ can be left blank or it must be the
-- same value as the @containerPort@.
--
-- Port mappings on Windows use the @NetNAT@ gateway address rather than
-- @localhost@. There\'s no loopback for port mappings on Windows, so you
-- can\'t access a container\'s mapped port from the host itself.
--
-- This parameter maps to @PortBindings@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--publish@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- If the network mode of a task definition is set to @none@, then you
-- can\'t specify port mappings. If the network mode of a task definition
-- is set to @host@, then host ports must either be undefined or they must
-- match the container port in the port mapping.
--
-- After a task reaches the @RUNNING@ status, manual and automatic host and
-- container port assignments are visible in the __Network Bindings__
-- section of a container description for a selected task in the Amazon ECS
-- console. The assignments are also visible in the @networkBindings@
-- section DescribeTasks responses.
containerDefinition_portMappings :: Lens.Lens' ContainerDefinition (Prelude.Maybe [PortMapping])
containerDefinition_portMappings :: Lens' ContainerDefinition (Maybe [PortMapping])
containerDefinition_portMappings = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | When this parameter is true, the container is given elevated privileges
-- on the host container instance (similar to the @root@ user). This
-- parameter maps to @Privileged@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--privileged@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter is not supported for Windows containers or tasks run on
-- Fargate.
containerDefinition_privileged :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_privileged :: Lens' ContainerDefinition (Maybe Bool)
containerDefinition_privileged = 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)

-- | When this parameter is @true@, a TTY is allocated. This parameter maps
-- to @Tty@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--tty@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
containerDefinition_pseudoTerminal :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_pseudoTerminal :: Lens' ContainerDefinition (Maybe Bool)
containerDefinition_pseudoTerminal = 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)

-- | When this parameter is true, the container is given read-only access to
-- its root file system. This parameter maps to @ReadonlyRootfs@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--read-only@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- This parameter is not supported for Windows containers.
containerDefinition_readonlyRootFilesystem :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Bool)
containerDefinition_readonlyRootFilesystem :: Lens' ContainerDefinition (Maybe Bool)
containerDefinition_readonlyRootFilesystem = 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)

-- | The private repository authentication credentials to use.
containerDefinition_repositoryCredentials :: Lens.Lens' ContainerDefinition (Prelude.Maybe RepositoryCredentials)
containerDefinition_repositoryCredentials :: Lens' ContainerDefinition (Maybe RepositoryCredentials)
containerDefinition_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)

-- | The type and amount of a resource to assign to a container. The only
-- supported resource is a GPU.
containerDefinition_resourceRequirements :: Lens.Lens' ContainerDefinition (Prelude.Maybe [ResourceRequirement])
containerDefinition_resourceRequirements :: Lens' ContainerDefinition (Maybe [ResourceRequirement])
containerDefinition_resourceRequirements = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The secrets to pass to the container. For more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html Specifying Sensitive Data>
-- in the /Amazon Elastic Container Service Developer Guide/.
containerDefinition_secrets :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Secret])
containerDefinition_secrets :: Lens' ContainerDefinition (Maybe [Secret])
containerDefinition_secrets = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Time duration (in seconds) to wait before giving up on resolving
-- dependencies for a container. For example, you specify two containers in
-- a task definition with containerA having a dependency on containerB
-- reaching a @COMPLETE@, @SUCCESS@, or @HEALTHY@ status. If a
-- @startTimeout@ value is specified for containerB and it doesn\'t reach
-- the desired status within that time then containerA gives up and not
-- start. This results in the task transitioning to a @STOPPED@ state.
--
-- When the @ECS_CONTAINER_START_TIMEOUT@ container agent configuration
-- variable is used, it\'s enforced independently from this start timeout
-- value.
--
-- For tasks using the Fargate launch type, the task or service requires
-- the following platforms:
--
-- -   Linux platform version @1.3.0@ or later.
--
-- -   Windows platform version @1.0.0@ or later.
--
-- For tasks using the EC2 launch type, your container instances require at
-- least version @1.26.0@ of the container agent to use a container start
-- timeout value. However, we recommend using the latest container agent
-- version. For information about checking your agent version and updating
-- to the latest version, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html Updating the Amazon ECS Container Agent>
-- in the /Amazon Elastic Container Service Developer Guide/. If you\'re
-- using an Amazon ECS-optimized Linux AMI, your instance needs at least
-- version @1.26.0-1@ of the @ecs-init@ package. If your container
-- instances are launched from version @20190301@ or later, then they
-- contain the required versions of the container agent and @ecs-init@. For
-- more information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html Amazon ECS-optimized Linux AMI>
-- in the /Amazon Elastic Container Service Developer Guide/.
containerDefinition_startTimeout :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Int)
containerDefinition_startTimeout :: Lens' ContainerDefinition (Maybe Int)
containerDefinition_startTimeout = 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)

-- | Time duration (in seconds) to wait before the container is forcefully
-- killed if it doesn\'t exit normally on its own.
--
-- For tasks using the Fargate launch type, the task or service requires
-- the following platforms:
--
-- -   Linux platform version @1.3.0@ or later.
--
-- -   Windows platform version @1.0.0@ or later.
--
-- The max stop timeout value is 120 seconds and if the parameter is not
-- specified, the default value of 30 seconds is used.
--
-- For tasks that use the EC2 launch type, if the @stopTimeout@ parameter
-- isn\'t specified, the value set for the Amazon ECS container agent
-- configuration variable @ECS_CONTAINER_STOP_TIMEOUT@ is used. If neither
-- the @stopTimeout@ parameter or the @ECS_CONTAINER_STOP_TIMEOUT@ agent
-- configuration variable are set, then the default values of 30 seconds
-- for Linux containers and 30 seconds on Windows containers are used. Your
-- container instances require at least version 1.26.0 of the container
-- agent to use a container stop timeout value. However, we recommend using
-- the latest container agent version. For information about checking your
-- agent version and updating to the latest version, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-update.html Updating the Amazon ECS Container Agent>
-- in the /Amazon Elastic Container Service Developer Guide/. If you\'re
-- using an Amazon ECS-optimized Linux AMI, your instance needs at least
-- version 1.26.0-1 of the @ecs-init@ package. If your container instances
-- are launched from version @20190301@ or later, then they contain the
-- required versions of the container agent and @ecs-init@. For more
-- information, see
-- <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html Amazon ECS-optimized Linux AMI>
-- in the /Amazon Elastic Container Service Developer Guide/.
containerDefinition_stopTimeout :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Int)
containerDefinition_stopTimeout :: Lens' ContainerDefinition (Maybe Int)
containerDefinition_stopTimeout = 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)

-- | A list of namespaced kernel parameters to set in the container. This
-- parameter maps to @Sysctls@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--sysctl@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- We don\'t recommended that you specify network-related @systemControls@
-- parameters for multiple containers in a single task that also uses
-- either the @awsvpc@ or @host@ network modes. For tasks that use the
-- @awsvpc@ network mode, the container that\'s started last determines
-- which @systemControls@ parameters take effect. For tasks that use the
-- @host@ network mode, it changes the container instance\'s namespaced
-- kernel parameters as well as the containers.
containerDefinition_systemControls :: Lens.Lens' ContainerDefinition (Prelude.Maybe [SystemControl])
containerDefinition_systemControls :: Lens' ContainerDefinition (Maybe [SystemControl])
containerDefinition_systemControls = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of @ulimits@ to set in the container. If a @ulimit@ value is
-- specified in a task definition, it overrides the default values set by
-- Docker. This parameter maps to @Ulimits@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--ulimit@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
-- Valid naming values are displayed in the Ulimit data type.
--
-- Amazon ECS tasks hosted on Fargate use the default resource limit values
-- set by the operating system with the exception of the @nofile@ resource
-- limit parameter which Fargate overrides. The @nofile@ resource limit
-- sets a restriction on the number of open files that a container can use.
-- The default @nofile@ soft limit is @1024@ and hard limit is @4096@.
--
-- This parameter requires version 1.18 of the Docker Remote API or greater
-- on your container instance. To check the Docker Remote API version on
-- your container instance, log in to your container instance and run the
-- following command:
-- @sudo docker version --format \'{{.Server.APIVersion}}\'@
--
-- This parameter is not supported for Windows containers.
containerDefinition_ulimits :: Lens.Lens' ContainerDefinition (Prelude.Maybe [Ulimit])
containerDefinition_ulimits :: Lens' ContainerDefinition (Maybe [Ulimit])
containerDefinition_ulimits = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The user to use inside the container. This parameter maps to @User@ in
-- the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--user@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
--
-- When running tasks using the @host@ network mode, don\'t run containers
-- using the root user (UID 0). We recommend using a non-root user for
-- better security.
--
-- You can specify the @user@ using the following formats. If specifying a
-- UID or GID, you must specify it as a positive integer.
--
-- -   @user@
--
-- -   @user:group@
--
-- -   @uid@
--
-- -   @uid:gid@
--
-- -   @user:gid@
--
-- -   @uid:group@
--
-- This parameter is not supported for Windows containers.
containerDefinition_user :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Text)
containerDefinition_user :: Lens' ContainerDefinition (Maybe Text)
containerDefinition_user = 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)

-- | Data volumes to mount from another container. This parameter maps to
-- @VolumesFrom@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--volumes-from@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
containerDefinition_volumesFrom :: Lens.Lens' ContainerDefinition (Prelude.Maybe [VolumeFrom])
containerDefinition_volumesFrom :: Lens' ContainerDefinition (Maybe [VolumeFrom])
containerDefinition_volumesFrom = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The working directory to run commands inside the container in. This
-- parameter maps to @WorkingDir@ in the
-- <https://docs.docker.com/engine/api/v1.35/#operation/ContainerCreate Create a container>
-- section of the
-- <https://docs.docker.com/engine/api/v1.35/ Docker Remote API> and the
-- @--workdir@ option to
-- <https://docs.docker.com/engine/reference/run/#security-configuration docker run>.
containerDefinition_workingDirectory :: Lens.Lens' ContainerDefinition (Prelude.Maybe Prelude.Text)
containerDefinition_workingDirectory :: Lens' ContainerDefinition (Maybe Text)
containerDefinition_workingDirectory = 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)

instance Data.FromJSON ContainerDefinition where
  parseJSON :: Value -> Parser ContainerDefinition
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ContainerDefinition"
      ( \Object
x ->
          Maybe [Text]
-> Maybe Int
-> Maybe [ContainerDependency]
-> Maybe Bool
-> Maybe [Text]
-> Maybe [Text]
-> Maybe (HashMap Text Text)
-> Maybe [Text]
-> Maybe [Text]
-> Maybe [KeyValuePair]
-> Maybe [EnvironmentFile]
-> Maybe Bool
-> Maybe [HostEntry]
-> Maybe FirelensConfiguration
-> Maybe HealthCheck
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe [Text]
-> Maybe LinuxParameters
-> Maybe LogConfiguration
-> Maybe Int
-> Maybe Int
-> Maybe [MountPoint]
-> Maybe Text
-> Maybe [PortMapping]
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe RepositoryCredentials
-> Maybe [ResourceRequirement]
-> Maybe [Secret]
-> Maybe Int
-> Maybe Int
-> Maybe [SystemControl]
-> Maybe [Ulimit]
-> Maybe Text
-> Maybe [VolumeFrom]
-> Maybe Text
-> ContainerDefinition
ContainerDefinition'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"command" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"cpu")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dependsOn" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"disableNetworking")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dnsSearchDomains"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dnsServers" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dockerLabels" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"dockerSecurityOptions"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"entryPoint" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"environment" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"environmentFiles"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"essential")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"extraHosts" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"firelensConfiguration")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"healthCheck")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"hostname")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"image")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"interactive")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"links" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"linuxParameters")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"logConfiguration")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"memory")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"memoryReservation")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"mountPoints" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"portMappings" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"privileged")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"pseudoTerminal")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"readonlyRootFilesystem")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"repositoryCredentials")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"resourceRequirements"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"secrets" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"startTimeout")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"stopTimeout")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"systemControls" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ulimits" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"user")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"volumesFrom" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"workingDirectory")
      )

instance Prelude.Hashable ContainerDefinition where
  hashWithSalt :: Int -> ContainerDefinition -> Int
hashWithSalt Int
_salt 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
workingDirectory :: Maybe Text
volumesFrom :: Maybe [VolumeFrom]
user :: Maybe Text
ulimits :: Maybe [Ulimit]
systemControls :: Maybe [SystemControl]
stopTimeout :: Maybe Int
startTimeout :: Maybe Int
secrets :: Maybe [Secret]
resourceRequirements :: Maybe [ResourceRequirement]
repositoryCredentials :: Maybe RepositoryCredentials
readonlyRootFilesystem :: Maybe Bool
pseudoTerminal :: Maybe Bool
privileged :: Maybe Bool
portMappings :: Maybe [PortMapping]
name :: Maybe Text
mountPoints :: Maybe [MountPoint]
memoryReservation :: Maybe Int
memory :: Maybe Int
logConfiguration :: Maybe LogConfiguration
linuxParameters :: Maybe LinuxParameters
links :: Maybe [Text]
interactive :: Maybe Bool
image :: Maybe Text
hostname :: Maybe Text
healthCheck :: Maybe HealthCheck
firelensConfiguration :: Maybe FirelensConfiguration
extraHosts :: Maybe [HostEntry]
essential :: Maybe Bool
environmentFiles :: Maybe [EnvironmentFile]
environment :: Maybe [KeyValuePair]
entryPoint :: Maybe [Text]
dockerSecurityOptions :: Maybe [Text]
dockerLabels :: Maybe (HashMap Text Text)
dnsServers :: Maybe [Text]
dnsSearchDomains :: Maybe [Text]
disableNetworking :: Maybe Bool
dependsOn :: Maybe [ContainerDependency]
cpu :: Maybe Int
command :: Maybe [Text]
$sel:workingDirectory:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:volumesFrom:ContainerDefinition' :: ContainerDefinition -> Maybe [VolumeFrom]
$sel:user:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:ulimits:ContainerDefinition' :: ContainerDefinition -> Maybe [Ulimit]
$sel:systemControls:ContainerDefinition' :: ContainerDefinition -> Maybe [SystemControl]
$sel:stopTimeout:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:startTimeout:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:secrets:ContainerDefinition' :: ContainerDefinition -> Maybe [Secret]
$sel:resourceRequirements:ContainerDefinition' :: ContainerDefinition -> Maybe [ResourceRequirement]
$sel:repositoryCredentials:ContainerDefinition' :: ContainerDefinition -> Maybe RepositoryCredentials
$sel:readonlyRootFilesystem:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:pseudoTerminal:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:privileged:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:portMappings:ContainerDefinition' :: ContainerDefinition -> Maybe [PortMapping]
$sel:name:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:mountPoints:ContainerDefinition' :: ContainerDefinition -> Maybe [MountPoint]
$sel:memoryReservation:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:memory:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:logConfiguration:ContainerDefinition' :: ContainerDefinition -> Maybe LogConfiguration
$sel:linuxParameters:ContainerDefinition' :: ContainerDefinition -> Maybe LinuxParameters
$sel:links:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:interactive:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:image:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:hostname:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:healthCheck:ContainerDefinition' :: ContainerDefinition -> Maybe HealthCheck
$sel:firelensConfiguration:ContainerDefinition' :: ContainerDefinition -> Maybe FirelensConfiguration
$sel:extraHosts:ContainerDefinition' :: ContainerDefinition -> Maybe [HostEntry]
$sel:essential:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:environmentFiles:ContainerDefinition' :: ContainerDefinition -> Maybe [EnvironmentFile]
$sel:environment:ContainerDefinition' :: ContainerDefinition -> Maybe [KeyValuePair]
$sel:entryPoint:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:dockerSecurityOptions:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:dockerLabels:ContainerDefinition' :: ContainerDefinition -> Maybe (HashMap Text Text)
$sel:dnsServers:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:dnsSearchDomains:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:disableNetworking:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:dependsOn:ContainerDefinition' :: ContainerDefinition -> Maybe [ContainerDependency]
$sel:cpu:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:command:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
command
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
cpu
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ContainerDependency]
dependsOn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
disableNetworking
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
dnsSearchDomains
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
dnsServers
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
dockerLabels
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
dockerSecurityOptions
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
entryPoint
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [KeyValuePair]
environment
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [EnvironmentFile]
environmentFiles
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
essential
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [HostEntry]
extraHosts
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FirelensConfiguration
firelensConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe HealthCheck
healthCheck
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
hostname
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
image
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
interactive
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
links
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LinuxParameters
linuxParameters
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LogConfiguration
logConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
memory
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
memoryReservation
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [MountPoint]
mountPoints
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [PortMapping]
portMappings
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
privileged
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
pseudoTerminal
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
readonlyRootFilesystem
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RepositoryCredentials
repositoryCredentials
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ResourceRequirement]
resourceRequirements
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Secret]
secrets
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
startTimeout
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
stopTimeout
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [SystemControl]
systemControls
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Ulimit]
ulimits
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
user
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [VolumeFrom]
volumesFrom
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
workingDirectory

instance Prelude.NFData ContainerDefinition where
  rnf :: ContainerDefinition -> ()
rnf 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
workingDirectory :: Maybe Text
volumesFrom :: Maybe [VolumeFrom]
user :: Maybe Text
ulimits :: Maybe [Ulimit]
systemControls :: Maybe [SystemControl]
stopTimeout :: Maybe Int
startTimeout :: Maybe Int
secrets :: Maybe [Secret]
resourceRequirements :: Maybe [ResourceRequirement]
repositoryCredentials :: Maybe RepositoryCredentials
readonlyRootFilesystem :: Maybe Bool
pseudoTerminal :: Maybe Bool
privileged :: Maybe Bool
portMappings :: Maybe [PortMapping]
name :: Maybe Text
mountPoints :: Maybe [MountPoint]
memoryReservation :: Maybe Int
memory :: Maybe Int
logConfiguration :: Maybe LogConfiguration
linuxParameters :: Maybe LinuxParameters
links :: Maybe [Text]
interactive :: Maybe Bool
image :: Maybe Text
hostname :: Maybe Text
healthCheck :: Maybe HealthCheck
firelensConfiguration :: Maybe FirelensConfiguration
extraHosts :: Maybe [HostEntry]
essential :: Maybe Bool
environmentFiles :: Maybe [EnvironmentFile]
environment :: Maybe [KeyValuePair]
entryPoint :: Maybe [Text]
dockerSecurityOptions :: Maybe [Text]
dockerLabels :: Maybe (HashMap Text Text)
dnsServers :: Maybe [Text]
dnsSearchDomains :: Maybe [Text]
disableNetworking :: Maybe Bool
dependsOn :: Maybe [ContainerDependency]
cpu :: Maybe Int
command :: Maybe [Text]
$sel:workingDirectory:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:volumesFrom:ContainerDefinition' :: ContainerDefinition -> Maybe [VolumeFrom]
$sel:user:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:ulimits:ContainerDefinition' :: ContainerDefinition -> Maybe [Ulimit]
$sel:systemControls:ContainerDefinition' :: ContainerDefinition -> Maybe [SystemControl]
$sel:stopTimeout:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:startTimeout:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:secrets:ContainerDefinition' :: ContainerDefinition -> Maybe [Secret]
$sel:resourceRequirements:ContainerDefinition' :: ContainerDefinition -> Maybe [ResourceRequirement]
$sel:repositoryCredentials:ContainerDefinition' :: ContainerDefinition -> Maybe RepositoryCredentials
$sel:readonlyRootFilesystem:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:pseudoTerminal:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:privileged:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:portMappings:ContainerDefinition' :: ContainerDefinition -> Maybe [PortMapping]
$sel:name:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:mountPoints:ContainerDefinition' :: ContainerDefinition -> Maybe [MountPoint]
$sel:memoryReservation:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:memory:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:logConfiguration:ContainerDefinition' :: ContainerDefinition -> Maybe LogConfiguration
$sel:linuxParameters:ContainerDefinition' :: ContainerDefinition -> Maybe LinuxParameters
$sel:links:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:interactive:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:image:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:hostname:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:healthCheck:ContainerDefinition' :: ContainerDefinition -> Maybe HealthCheck
$sel:firelensConfiguration:ContainerDefinition' :: ContainerDefinition -> Maybe FirelensConfiguration
$sel:extraHosts:ContainerDefinition' :: ContainerDefinition -> Maybe [HostEntry]
$sel:essential:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:environmentFiles:ContainerDefinition' :: ContainerDefinition -> Maybe [EnvironmentFile]
$sel:environment:ContainerDefinition' :: ContainerDefinition -> Maybe [KeyValuePair]
$sel:entryPoint:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:dockerSecurityOptions:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:dockerLabels:ContainerDefinition' :: ContainerDefinition -> Maybe (HashMap Text Text)
$sel:dnsServers:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:dnsSearchDomains:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:disableNetworking:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:dependsOn:ContainerDefinition' :: ContainerDefinition -> Maybe [ContainerDependency]
$sel:cpu:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:command:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
command
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
cpu
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ContainerDependency]
dependsOn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
disableNetworking
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
dnsSearchDomains
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
dnsServers
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
dockerLabels
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
dockerSecurityOptions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
entryPoint
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [KeyValuePair]
environment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [EnvironmentFile]
environmentFiles
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
essential
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [HostEntry]
extraHosts
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FirelensConfiguration
firelensConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe HealthCheck
healthCheck
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
hostname
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
image
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
interactive
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
links
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LinuxParameters
linuxParameters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LogConfiguration
logConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
memory
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Int
memoryReservation
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [MountPoint]
mountPoints
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [PortMapping]
portMappings
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Bool
privileged
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Bool
pseudoTerminal
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Bool
readonlyRootFilesystem
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe RepositoryCredentials
repositoryCredentials
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [ResourceRequirement]
resourceRequirements
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [Secret]
secrets
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Int
startTimeout
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Int
stopTimeout
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [SystemControl]
systemControls
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [Ulimit]
ulimits
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Text
user
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [VolumeFrom]
volumesFrom
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe Text
workingDirectory

instance Data.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
workingDirectory :: Maybe Text
volumesFrom :: Maybe [VolumeFrom]
user :: Maybe Text
ulimits :: Maybe [Ulimit]
systemControls :: Maybe [SystemControl]
stopTimeout :: Maybe Int
startTimeout :: Maybe Int
secrets :: Maybe [Secret]
resourceRequirements :: Maybe [ResourceRequirement]
repositoryCredentials :: Maybe RepositoryCredentials
readonlyRootFilesystem :: Maybe Bool
pseudoTerminal :: Maybe Bool
privileged :: Maybe Bool
portMappings :: Maybe [PortMapping]
name :: Maybe Text
mountPoints :: Maybe [MountPoint]
memoryReservation :: Maybe Int
memory :: Maybe Int
logConfiguration :: Maybe LogConfiguration
linuxParameters :: Maybe LinuxParameters
links :: Maybe [Text]
interactive :: Maybe Bool
image :: Maybe Text
hostname :: Maybe Text
healthCheck :: Maybe HealthCheck
firelensConfiguration :: Maybe FirelensConfiguration
extraHosts :: Maybe [HostEntry]
essential :: Maybe Bool
environmentFiles :: Maybe [EnvironmentFile]
environment :: Maybe [KeyValuePair]
entryPoint :: Maybe [Text]
dockerSecurityOptions :: Maybe [Text]
dockerLabels :: Maybe (HashMap Text Text)
dnsServers :: Maybe [Text]
dnsSearchDomains :: Maybe [Text]
disableNetworking :: Maybe Bool
dependsOn :: Maybe [ContainerDependency]
cpu :: Maybe Int
command :: Maybe [Text]
$sel:workingDirectory:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:volumesFrom:ContainerDefinition' :: ContainerDefinition -> Maybe [VolumeFrom]
$sel:user:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:ulimits:ContainerDefinition' :: ContainerDefinition -> Maybe [Ulimit]
$sel:systemControls:ContainerDefinition' :: ContainerDefinition -> Maybe [SystemControl]
$sel:stopTimeout:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:startTimeout:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:secrets:ContainerDefinition' :: ContainerDefinition -> Maybe [Secret]
$sel:resourceRequirements:ContainerDefinition' :: ContainerDefinition -> Maybe [ResourceRequirement]
$sel:repositoryCredentials:ContainerDefinition' :: ContainerDefinition -> Maybe RepositoryCredentials
$sel:readonlyRootFilesystem:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:pseudoTerminal:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:privileged:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:portMappings:ContainerDefinition' :: ContainerDefinition -> Maybe [PortMapping]
$sel:name:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:mountPoints:ContainerDefinition' :: ContainerDefinition -> Maybe [MountPoint]
$sel:memoryReservation:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:memory:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:logConfiguration:ContainerDefinition' :: ContainerDefinition -> Maybe LogConfiguration
$sel:linuxParameters:ContainerDefinition' :: ContainerDefinition -> Maybe LinuxParameters
$sel:links:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:interactive:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:image:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:hostname:ContainerDefinition' :: ContainerDefinition -> Maybe Text
$sel:healthCheck:ContainerDefinition' :: ContainerDefinition -> Maybe HealthCheck
$sel:firelensConfiguration:ContainerDefinition' :: ContainerDefinition -> Maybe FirelensConfiguration
$sel:extraHosts:ContainerDefinition' :: ContainerDefinition -> Maybe [HostEntry]
$sel:essential:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:environmentFiles:ContainerDefinition' :: ContainerDefinition -> Maybe [EnvironmentFile]
$sel:environment:ContainerDefinition' :: ContainerDefinition -> Maybe [KeyValuePair]
$sel:entryPoint:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:dockerSecurityOptions:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:dockerLabels:ContainerDefinition' :: ContainerDefinition -> Maybe (HashMap Text Text)
$sel:dnsServers:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:dnsSearchDomains:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
$sel:disableNetworking:ContainerDefinition' :: ContainerDefinition -> Maybe Bool
$sel:dependsOn:ContainerDefinition' :: ContainerDefinition -> Maybe [ContainerDependency]
$sel:cpu:ContainerDefinition' :: ContainerDefinition -> Maybe Int
$sel:command:ContainerDefinition' :: ContainerDefinition -> Maybe [Text]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"command" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
command,
            (Key
"cpu" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
cpu,
            (Key
"dependsOn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ContainerDependency]
dependsOn,
            (Key
"disableNetworking" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
disableNetworking,
            (Key
"dnsSearchDomains" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
dnsSearchDomains,
            (Key
"dnsServers" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
dnsServers,
            (Key
"dockerLabels" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
dockerLabels,
            (Key
"dockerSecurityOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
dockerSecurityOptions,
            (Key
"entryPoint" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
entryPoint,
            (Key
"environment" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [KeyValuePair]
environment,
            (Key
"environmentFiles" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [EnvironmentFile]
environmentFiles,
            (Key
"essential" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
essential,
            (Key
"extraHosts" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [HostEntry]
extraHosts,
            (Key
"firelensConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FirelensConfiguration
firelensConfiguration,
            (Key
"healthCheck" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HealthCheck
healthCheck,
            (Key
"hostname" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
hostname,
            (Key
"image" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
image,
            (Key
"interactive" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
interactive,
            (Key
"links" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
links,
            (Key
"linuxParameters" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LinuxParameters
linuxParameters,
            (Key
"logConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LogConfiguration
logConfiguration,
            (Key
"memory" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
memory,
            (Key
"memoryReservation" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
memoryReservation,
            (Key
"mountPoints" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [MountPoint]
mountPoints,
            (Key
"name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
            (Key
"portMappings" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [PortMapping]
portMappings,
            (Key
"privileged" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
privileged,
            (Key
"pseudoTerminal" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
pseudoTerminal,
            (Key
"readonlyRootFilesystem" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
readonlyRootFilesystem,
            (Key
"repositoryCredentials" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe RepositoryCredentials
repositoryCredentials,
            (Key
"resourceRequirements" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ResourceRequirement]
resourceRequirements,
            (Key
"secrets" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Secret]
secrets,
            (Key
"startTimeout" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
startTimeout,
            (Key
"stopTimeout" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
stopTimeout,
            (Key
"systemControls" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SystemControl]
systemControls,
            (Key
"ulimits" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Ulimit]
ulimits,
            (Key
"user" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
user,
            (Key
"volumesFrom" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [VolumeFrom]
volumesFrom,
            (Key
"workingDirectory" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
workingDirectory
          ]
      )