public static interface ContainerOverrides.Builder extends SdkPojo, CopyableBuilder<ContainerOverrides.Builder,ContainerOverrides>
| Modifier and Type | Method and Description |
|---|---|
ContainerOverrides.Builder |
command(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
ContainerOverrides.Builder |
command(String... command)
The command to send to the container that overrides the default command from the Docker image or the job
definition.
|
ContainerOverrides.Builder |
environment(Collection<KeyValuePair> environment)
The environment variables to send to the container.
|
ContainerOverrides.Builder |
environment(Consumer<KeyValuePair.Builder>... environment)
The environment variables to send to the container.
|
ContainerOverrides.Builder |
environment(KeyValuePair... environment)
The environment variables to send to the container.
|
ContainerOverrides.Builder |
instanceType(String instanceType)
The instance type to use for a multi-node parallel job.
|
ContainerOverrides.Builder |
memory(Integer memory)
This parameter indicates the amount of memory (in MiB) that's reserved for the job.
|
ContainerOverrides.Builder |
resourceRequirements(Collection<ResourceRequirement> resourceRequirements)
The type and amount of resources to assign to a container.
|
ContainerOverrides.Builder |
resourceRequirements(Consumer<ResourceRequirement.Builder>... resourceRequirements)
The type and amount of resources to assign to a container.
|
ContainerOverrides.Builder |
resourceRequirements(ResourceRequirement... resourceRequirements)
The type and amount of resources to assign to a container.
|
ContainerOverrides.Builder |
vcpus(Integer vcpus)
This parameter indicates the number of vCPUs reserved for the container.It overrides the
vcpus
parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the
resourceRequirement structure in the job definition. |
equalsBySdkFields, sdkFieldscopyapplyMutation, buildContainerOverrides.Builder vcpus(Integer vcpus)
This parameter indicates the number of vCPUs reserved for the container.It overrides the vcpus
parameter that's set in the job definition, but doesn't override any vCPU requirement specified in the
resourceRequirement structure in the job definition.
This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on
Fargate resources. For Fargate resources, you can only use resourceRequirement. For EC2
resources, you can use either this parameter or resourceRequirement but not both.
This parameter maps to CpuShares 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.
This parameter isn't applicable to jobs that run on Fargate resources and shouldn't be provided. For jobs
that run on Fargate resources, you must specify the vCPU requirement for the job using
resourceRequirements.
vcpus - This parameter indicates the number of vCPUs reserved for the container.It overrides the
vcpus parameter that's set in the job definition, but doesn't override any vCPU
requirement specified in the resourceRequirement structure in the job definition.
This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run
on Fargate resources. For Fargate resources, you can only use resourceRequirement. For
EC2 resources, you can use either this parameter or resourceRequirement but not both.
This parameter maps to CpuShares 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.
This parameter isn't applicable to jobs that run on Fargate resources and shouldn't be provided. For
jobs that run on Fargate resources, you must specify the vCPU requirement for the job using
resourceRequirements.
ContainerOverrides.Builder memory(Integer memory)
This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the
memory parameter set in the job definition, but doesn't override any memory requirement
specified in the ResourceRequirement structure in the job definition.
This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run on
Fargate resources. For these resources, use resourceRequirement instead.
memory - This parameter indicates the amount of memory (in MiB) that's reserved for the job. It overrides the
memory parameter set in the job definition, but doesn't override any memory requirement
specified in the ResourceRequirement structure in the job definition.
This parameter is supported for jobs that run on EC2 resources, but isn't supported for jobs that run
on Fargate resources. For these resources, use resourceRequirement instead.
ContainerOverrides.Builder command(Collection<String> command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
command - The command to send to the container that overrides the default command from the Docker image or the
job definition.ContainerOverrides.Builder command(String... command)
The command to send to the container that overrides the default command from the Docker image or the job definition.
command - The command to send to the container that overrides the default command from the Docker image or the
job definition.ContainerOverrides.Builder instanceType(String instanceType)
The instance type to use for a multi-node parallel job.
This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and shouldn't be provided.
instanceType - The instance type to use for a multi-node parallel job. This parameter isn't applicable to single-node container jobs or for jobs running on Fargate resources and shouldn't be provided.
ContainerOverrides.Builder environment(Collection<KeyValuePair> 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 job definition.
Environment variables must not start with AWS_BATCH; this naming convention is reserved for
variables that are set by the AWS Batch service.
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 job definition.
Environment variables must not start with AWS_BATCH; this naming convention is reserved
for variables that are set by the AWS Batch service.
ContainerOverrides.Builder environment(KeyValuePair... 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 job definition.
Environment variables must not start with AWS_BATCH; this naming convention is reserved for
variables that are set by the AWS Batch service.
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 job definition.
Environment variables must not start with AWS_BATCH; this naming convention is reserved
for variables that are set by the AWS Batch service.
ContainerOverrides.Builder environment(Consumer<KeyValuePair.Builder>... 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 job definition.
Environment variables must not start with AWS_BATCH; this naming convention is reserved for
variables that are set by the AWS Batch service.
List.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #environment(List) .environment - a consumer that will call methods on List.Builder #environment(List) ContainerOverrides.Builder resourceRequirements(Collection<ResourceRequirement> resourceRequirements)
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, and VCPU.
resourceRequirements - 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, and
VCPU.ContainerOverrides.Builder resourceRequirements(ResourceRequirement... resourceRequirements)
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, and VCPU.
resourceRequirements - 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, and
VCPU.ContainerOverrides.Builder resourceRequirements(Consumer<ResourceRequirement.Builder>... resourceRequirements)
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, and VCPU.
List.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #resourceRequirements(List) .resourceRequirements - a consumer that will call methods on List.Builder #resourceRequirements(List) Copyright © 2021. All rights reserved.