ContainerOverrides class
The overrides that should be sent to a container.
Constructors
-
ContainerOverrides({List<
String> ? command, List<KeyValuePair> ? environment, String? instanceType, int? memory, List<ResourceRequirement> ? resourceRequirements, int? vcpus})
Properties
-
command
→ List<
String> ? -
The command to send to the container that overrides the default command from
the Docker image or the job definition.
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
job definition.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- instanceType → String?
-
The instance type to use for a multi-node parallel job.
final
- memory → int?
-
This parameter is deprecated and not supported for jobs run on Fargate
resources, use
ResourceRequirement
. For jobs run on EC2 resource, the number of MiB of memory reserved for the job. This value overrides the value set in the job definition.final -
resourceRequirements
→ List<
ResourceRequirement> ? -
The type and amount of resources to assign to a container. This overrides
the settings in the job definition. The supported resources include
GPU
,MEMORY
, andVCPU
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- vcpus → int?
-
This parameter is deprecated and not supported for jobs run on Fargate
resources, see
resourceRequirement
. For jobs run on EC2 resources, the number of vCPUs to reserve for the container. This value overrides the value set in the job definition. Jobs run on EC2 resources can specify the vCPU requirement usingresourceRequirement
but the vCPU requirements can't be specified both here and inresourceRequirement
. This parameter maps toCpuShares
in the Create a container section of the Docker Remote API and the--cpu-shares
option to docker run. Each vCPU is equivalent to 1,024 CPU shares. You must specify at least one vCPU.final
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