Struct aws_sdk_batch::model::eks_container_override::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for EksContainerOverride
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn image(self, input: impl Into<String>) -> Self
pub fn image(self, input: impl Into<String>) -> Self
The override of the Docker image that's used to start the container.
sourcepub fn set_image(self, input: Option<String>) -> Self
pub fn set_image(self, input: Option<String>) -> Self
The override of the Docker image that's used to start the container.
sourcepub fn command(self, input: impl Into<String>) -> Self
pub fn command(self, input: impl Into<String>) -> Self
Appends an item to command
.
To override the contents of this collection use set_command
.
The command to send to the container that overrides the default command from the Docker image or the job definition.
sourcepub fn set_command(self, input: Option<Vec<String>>) -> Self
pub fn set_command(self, input: Option<Vec<String>>) -> Self
The command to send to the container that overrides the default command from the Docker image or the job definition.
sourcepub fn args(self, input: impl Into<String>) -> Self
pub fn args(self, input: impl Into<String>) -> Self
Appends an item to args
.
To override the contents of this collection use set_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 CMD in the Dockerfile reference and Define a command an arguments for a pod in the Kubernetes documentation.
sourcepub fn set_args(self, input: Option<Vec<String>>) -> Self
pub fn set_args(self, input: Option<Vec<String>>) -> Self
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 CMD in the Dockerfile reference and Define a command an arguments for a pod in the Kubernetes documentation.
sourcepub fn env(self, input: EksContainerEnvironmentVariable) -> Self
pub fn env(self, input: EksContainerEnvironmentVariable) -> Self
Appends an item to env
.
To override the contents of this collection use set_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.
sourcepub fn set_env(self, input: Option<Vec<EksContainerEnvironmentVariable>>) -> Self
pub fn set_env(self, input: Option<Vec<EksContainerEnvironmentVariable>>) -> Self
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.
sourcepub fn resources(self, input: EksContainerResourceRequirements) -> Self
pub fn resources(self, input: EksContainerResourceRequirements) -> Self
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
, and nvidia.com/gpu
. For more information, see Resource management for pods and containers in the Kubernetes documentation.
sourcepub fn set_resources(
self,
input: Option<EksContainerResourceRequirements>
) -> Self
pub fn set_resources(
self,
input: Option<EksContainerResourceRequirements>
) -> Self
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
, and nvidia.com/gpu
. For more information, see Resource management for pods and containers in the Kubernetes documentation.
sourcepub fn build(self) -> EksContainerOverride
pub fn build(self) -> EksContainerOverride
Consumes the builder and constructs a EksContainerOverride
.