Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data ContainerOverride = ContainerOverride' {
- command :: Maybe [Text]
- environment :: Maybe [KeyValuePair]
- environmentFiles :: Maybe [EnvironmentFile]
- resourceRequirements :: Maybe [ResourceRequirement]
- memory :: Maybe Int
- name :: Maybe Text
- cpu :: Maybe Int
- memoryReservation :: Maybe Int
- newContainerOverride :: ContainerOverride
- containerOverride_command :: Lens' ContainerOverride (Maybe [Text])
- containerOverride_environment :: Lens' ContainerOverride (Maybe [KeyValuePair])
- containerOverride_environmentFiles :: Lens' ContainerOverride (Maybe [EnvironmentFile])
- containerOverride_resourceRequirements :: Lens' ContainerOverride (Maybe [ResourceRequirement])
- containerOverride_memory :: Lens' ContainerOverride (Maybe Int)
- containerOverride_name :: Lens' ContainerOverride (Maybe Text)
- containerOverride_cpu :: Lens' ContainerOverride (Maybe Int)
- containerOverride_memoryReservation :: Lens' ContainerOverride (Maybe Int)
Documentation
data ContainerOverride Source #
The overrides that should be sent to a container. An empty container
override can be passed in. An example of an empty container override
would be {"containerOverrides": [ ] }
. If a non-empty container
override is specified, the name
parameter must be included.
See: newContainerOverride
smart constructor.
ContainerOverride' | |
|
Instances
newContainerOverride :: ContainerOverride Source #
Create a value of ContainerOverride
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:command:ContainerOverride'
, containerOverride_command
- The command to send to the container that overrides the default command
from the Docker image or the task definition. You must also specify a
container name.
$sel:environment:ContainerOverride'
, containerOverride_environment
- The environment variables to send to the container. You can add new
environment variables, which are added to the container at launch, or
you can override the existing environment variables from the Docker
image or the task definition. You must also specify a container name.
$sel:environmentFiles:ContainerOverride'
, containerOverride_environmentFiles
- A list of files containing the environment variables to pass to a
container, instead of the value from the container definition.
$sel:resourceRequirements:ContainerOverride'
, containerOverride_resourceRequirements
- The type and amount of a resource to assign to a container, instead of
the default value from the task definition. The only supported resource
is a GPU.
$sel:memory:ContainerOverride'
, containerOverride_memory
- The hard limit (in MiB) of memory to present to the container, instead
of the default value from the task definition. If your container
attempts to exceed the memory specified here, the container is killed.
You must also specify a container name.
$sel:name:ContainerOverride'
, containerOverride_name
- The name of the container that receives the override. This parameter is
required if any override is specified.
$sel:cpu:ContainerOverride'
, containerOverride_cpu
- The number of cpu
units reserved for the container, instead of the
default value from the task definition. You must also specify a
container name.
$sel:memoryReservation:ContainerOverride'
, containerOverride_memoryReservation
- The soft limit (in MiB) of memory to reserve for the container, instead
of the default value from the task definition. You must also specify a
container name.
containerOverride_command :: Lens' ContainerOverride (Maybe [Text]) Source #
The command to send to the container that overrides the default command from the Docker image or the task definition. You must also specify a container name.
containerOverride_environment :: Lens' ContainerOverride (Maybe [KeyValuePair]) Source #
The environment variables to send to the container. You can add new environment variables, which are added to the container at launch, or you can override the existing environment variables from the Docker image or the task definition. You must also specify a container name.
containerOverride_environmentFiles :: Lens' ContainerOverride (Maybe [EnvironmentFile]) Source #
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
containerOverride_resourceRequirements :: Lens' ContainerOverride (Maybe [ResourceRequirement]) Source #
The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
containerOverride_memory :: Lens' ContainerOverride (Maybe Int) Source #
The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.
containerOverride_name :: Lens' ContainerOverride (Maybe Text) Source #
The name of the container that receives the override. This parameter is required if any override is specified.
containerOverride_cpu :: Lens' ContainerOverride (Maybe Int) Source #
The number of cpu
units reserved for the container, instead of the
default value from the task definition. You must also specify a
container name.
containerOverride_memoryReservation :: Lens' ContainerOverride (Maybe Int) Source #
The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.