libZSservicesZSamazonka-ecsZSamazonka-ecs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ECS.Types.ContainerOverride

Description

 
Synopsis

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.

Constructors

ContainerOverride' 

Fields

  • command :: Maybe [Text]

    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.

  • environment :: Maybe [KeyValuePair]

    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.

  • environmentFiles :: Maybe [EnvironmentFile]

    A list of files containing the environment variables to pass to a container, instead of the value from the container definition.

  • resourceRequirements :: Maybe [ResourceRequirement]

    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.

  • memory :: Maybe Int

    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.

  • name :: Maybe Text

    The name of the container that receives the override. This parameter is required if any override is specified.

  • cpu :: Maybe Int

    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.

  • memoryReservation :: Maybe Int

    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.

Instances

Instances details
Eq ContainerOverride Source # 
Instance details

Defined in Amazonka.ECS.Types.ContainerOverride

Read ContainerOverride Source # 
Instance details

Defined in Amazonka.ECS.Types.ContainerOverride

Show ContainerOverride Source # 
Instance details

Defined in Amazonka.ECS.Types.ContainerOverride

Generic ContainerOverride Source # 
Instance details

Defined in Amazonka.ECS.Types.ContainerOverride

Associated Types

type Rep ContainerOverride :: Type -> Type #

NFData ContainerOverride Source # 
Instance details

Defined in Amazonka.ECS.Types.ContainerOverride

Methods

rnf :: ContainerOverride -> () #

Hashable ContainerOverride Source # 
Instance details

Defined in Amazonka.ECS.Types.ContainerOverride

ToJSON ContainerOverride Source # 
Instance details

Defined in Amazonka.ECS.Types.ContainerOverride

FromJSON ContainerOverride Source # 
Instance details

Defined in Amazonka.ECS.Types.ContainerOverride

type Rep ContainerOverride Source # 
Instance details

Defined in Amazonka.ECS.Types.ContainerOverride

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.