Interface EksContainerOverride.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<EksContainerOverride.Builder,
,EksContainerOverride> SdkBuilder<EksContainerOverride.Builder,
,EksContainerOverride> SdkPojo
- Enclosing class:
EksContainerOverride
-
Method Summary
Modifier and TypeMethodDescriptionThe arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition.args
(Collection<String> args) The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition.The command to send to the container that overrides the default command from the Docker image or the job definition.command
(Collection<String> command) The command to send to the container that overrides the default command from the Docker image or the job definition.The environment variables to send to the container.The environment variables to send to the container.env
(EksContainerEnvironmentVariable... env) The environment variables to send to the container.The override of the Docker image that's used to start the container.A pointer to the container that you want to override.default EksContainerOverride.Builder
The type and amount of resources to assign to a container.resources
(EksContainerResourceRequirements resources) The type and amount of resources to assign to a container.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
A pointer to the container that you want to override. The name must match a unique container name that you wish to override.
- Parameters:
name
- A pointer to the container that you want to override. The name must match a unique container name that you wish to override.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
image
The override of the Docker image that's used to start the container.
- Parameters:
image
- The override of the Docker image that's used to start the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
The command to send to the container that overrides the default command from the Docker image or the job definition.
- Parameters:
command
- The command to send to the container that overrides the default command from the Docker image or the job definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
command
The command to send to the container that overrides the default command from the Docker image or the job definition.
- Parameters:
command
- The command to send to the container that overrides the default command from the Docker image or the job definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
args
The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition. For more information, see Dockerfile reference: CMD and Define a command an arguments for a pod in the Kubernetes documentation.
- Parameters:
args
- The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition. For more information, see Dockerfile reference: CMD and Define a command an arguments for a pod in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
args
The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition. For more information, see Dockerfile reference: CMD and Define a command an arguments for a pod in the Kubernetes documentation.
- Parameters:
args
- The arguments to the entrypoint to send to the container that overrides the default arguments from the Docker image or the job definition. For more information, see Dockerfile reference: CMD and Define a command an arguments for a pod in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
env
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.- Parameters:
env
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
env
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.- Parameters:
env
- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
env
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.EksContainerEnvironmentVariable.Builder
avoiding the need to create one manually viaEksContainerEnvironmentVariable.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toenv(List<EksContainerEnvironmentVariable>)
.- Parameters:
env
- a consumer that will call methods onEksContainerEnvironmentVariable.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resources
The type and amount of resources to assign to a container. These override the settings in the job definition. The supported resources include
memory
,cpu
, andnvidia.com/gpu
. For more information, see Resource management for pods and containers in the Kubernetes documentation.- Parameters:
resources
- The type and amount of resources to assign to a container. These override the settings in the job definition. The supported resources includememory
,cpu
, andnvidia.com/gpu
. For more information, see Resource management for pods and containers in the Kubernetes documentation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resources
default EksContainerOverride.Builder resources(Consumer<EksContainerResourceRequirements.Builder> resources) The type and amount of resources to assign to a container. These override the settings in the job definition. The supported resources include
This is a convenience method that creates an instance of thememory
,cpu
, andnvidia.com/gpu
. For more information, see Resource management for pods and containers in the Kubernetes documentation.EksContainerResourceRequirements.Builder
avoiding the need to create one manually viaEksContainerResourceRequirements.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresources(EksContainerResourceRequirements)
.- Parameters:
resources
- a consumer that will call methods onEksContainerResourceRequirements.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-