ContainerOverride class

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.

Constructors

ContainerOverride({List<String>? command, int? cpu, List<KeyValuePair>? environment, List<EnvironmentFile>? environmentFiles, int? memory, int? memoryReservation, String? name, List<ResourceRequirement>? resourceRequirements})
ContainerOverride.fromJson(Map<String, dynamic> json)
factory

Properties

command List<String>?
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.
final
cpu 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.
final
environment List<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.
final
environmentFiles List<EnvironmentFile>?
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
final
hashCode int
The hash code for this object.
no setterinherited
memory 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.
final
memoryReservation 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.
final
name String?
The name of the container that receives the override. This parameter is required if any override is specified.
final
resourceRequirements List<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.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited