ContainerOverrideDict¶
Dictionary Type¶
ContainerOverrideDict
¶
Bases: TypedDict
Dictionary form of ContainerOverride.
Attributes¶
command
instance-attribute
¶
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.
cpu
instance-attribute
¶
cpu: int | None
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.
environment
instance-attribute
¶
environment: Sequence[KeyValuePair | KeyValuePairDict] | None
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.
environment_files
instance-attribute
¶
environment_files: Sequence[EnvironmentFile | EnvironmentFileDict] | None
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
memory
instance-attribute
¶
memory: int | None
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.
memory_reservation
instance-attribute
¶
memory_reservation: int | None
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.
name
instance-attribute
¶
name: str | None
The name of the container that receives the override. This parameter is required if any override is specified.
resource_requirements
instance-attribute
¶
resource_requirements: Sequence[ResourceRequirement | ResourceRequirementDict] | None
The type and amount of a resource to assign to a container, instead of the default value from the task definition. The supported resources are GPUs and Neuron devices.