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)
Deprecated.
This field is deprecated, use resourceRequirements instead.
|
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)
Deprecated.
This field is deprecated, use resourceRequirements instead.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, build@Deprecated ContainerOverrides.Builder vcpus(Integer vcpus)
This parameter is deprecated, use resourceRequirements to override the vcpus
parameter that's set in the job definition. It's not supported for jobs running on Fargate resources. For
jobs that run on EC2 resources, it overrides the vcpus parameter set in the job definition, but
doesn't override any vCPU requirement specified in the resourceRequirements structure in the job
definition. To override vCPU requirements that are specified in the resourceRequirements
structure in the job definition, resourceRequirements must be specified in the
SubmitJob request, with type set to VCPU and value set to
the new value. For more information, see Can't override job definition resource requirements in the Batch User Guide.
vcpus - This parameter is deprecated, use resourceRequirements to override the vcpus
parameter that's set in the job definition. It's not supported for jobs running on Fargate resources.
For jobs that run on EC2 resources, it overrides the vcpus parameter set in the job
definition, but doesn't override any vCPU requirement specified in the
resourceRequirements structure in the job definition. To override vCPU requirements that
are specified in the resourceRequirements structure in the job definition,
resourceRequirements must be specified in the SubmitJob request, with
type set to VCPU and value set to the new value. For more
information, see Can't override job definition resource requirements in the Batch User Guide.@Deprecated ContainerOverrides.Builder memory(Integer memory)
This parameter is deprecated, use resourceRequirements to override the memory requirements
specified in the job definition. It's not supported for jobs running on Fargate resources. For jobs that run
on EC2 resources, it overrides the memory parameter set in the job definition, but doesn't
override any memory requirement that's specified in the resourceRequirements structure in the
job definition. To override memory requirements that are specified in the resourceRequirements
structure in the job definition, resourceRequirements must be specified in the
SubmitJob request, with type set to MEMORY and value set
to the new value. For more information, see Can't override job definition resource requirements in the Batch User Guide.
memory - This parameter is deprecated, use resourceRequirements to override the memory
requirements specified in the job definition. It's not supported for jobs running on Fargate
resources. For jobs that run on EC2 resources, it overrides the memory parameter set in
the job definition, but doesn't override any memory requirement that's specified in the
resourceRequirements structure in the job definition. To override memory requirements
that are specified in the resourceRequirements structure in the job definition,
resourceRequirements must be specified in the SubmitJob request, with
type set to MEMORY and value set to the new value. For more
information, see Can't override job definition resource requirements in the Batch User Guide.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.
This parameter can't contain an empty string.
command - The command to send to the container that overrides the default command from the Docker image or the
job definition. This parameter can't contain an empty string.
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.
This parameter can't contain an empty string.
command - The command to send to the container that overrides the default command from the Docker image or the
job definition. This parameter can't contain an empty string.
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 jobs that run 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 jobs that run 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 cannot start with "AWS_BATCH". This naming convention is reserved for
variables that Batch sets.
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 cannot start with "AWS_BATCH". This naming convention is reserved
for variables that Batch sets.
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 cannot start with "AWS_BATCH". This naming convention is reserved for
variables that Batch sets.
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 cannot start with "AWS_BATCH". This naming convention is reserved
for variables that Batch sets.
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 cannot start with "AWS_BATCH". This naming convention is reserved for
variables that Batch sets.
KeyValuePair.Builder avoiding the need to create one
manually via KeyValuePair.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #environment(List.
environment - a consumer that will call methods on
KeyValuePair.Builder#environment(java.util.Collection) 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.
ResourceRequirement.Builder avoiding the need to create
one manually via ResourceRequirement.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #resourceRequirements(List.
resourceRequirements - a consumer that will call methods on
ResourceRequirement.Builder#resourceRequirements(java.util.Collection) Copyright © 2023. All rights reserved.