Struct aws_sdk_batch::types::EksContainerOverride
source · #[non_exhaustive]pub struct EksContainerOverride {
pub image: Option<String>,
pub command: Option<Vec<String>>,
pub args: Option<Vec<String>>,
pub env: Option<Vec<EksContainerEnvironmentVariable>>,
pub resources: Option<EksContainerResourceRequirements>,
}
Expand description
Object representing any Kubernetes overrides to a job definition that's used in a SubmitJob
API operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.image: Option<String>
The override of the Docker image that's used to start the container.
command: Option<Vec<String>>
The command to send to the container that overrides the default command from the Docker image or the job definition.
args: Option<Vec<String>>
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.
env: Option<Vec<EksContainerEnvironmentVariable>>
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.
resources: Option<EksContainerResourceRequirements>
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.
Implementations§
source§impl EksContainerOverride
impl EksContainerOverride
sourcepub fn image(&self) -> Option<&str>
pub fn image(&self) -> Option<&str>
The override of the Docker image that's used to start the container.
sourcepub fn command(&self) -> Option<&[String]>
pub fn command(&self) -> Option<&[String]>
The command to send to the container that overrides the default command from the Docker image or the job definition.
sourcepub fn args(&self) -> Option<&[String]>
pub fn args(&self) -> Option<&[String]>
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) -> Option<&[EksContainerEnvironmentVariable]>
pub fn env(&self) -> Option<&[EksContainerEnvironmentVariable]>
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) -> Option<&EksContainerResourceRequirements>
pub fn resources(&self) -> Option<&EksContainerResourceRequirements>
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.
source§impl EksContainerOverride
impl EksContainerOverride
sourcepub fn builder() -> EksContainerOverrideBuilder
pub fn builder() -> EksContainerOverrideBuilder
Creates a new builder-style object to manufacture EksContainerOverride
.
Trait Implementations§
source§impl Clone for EksContainerOverride
impl Clone for EksContainerOverride
source§fn clone(&self) -> EksContainerOverride
fn clone(&self) -> EksContainerOverride
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EksContainerOverride
impl Debug for EksContainerOverride
source§impl PartialEq<EksContainerOverride> for EksContainerOverride
impl PartialEq<EksContainerOverride> for EksContainerOverride
source§fn eq(&self, other: &EksContainerOverride) -> bool
fn eq(&self, other: &EksContainerOverride) -> bool
self
and other
values to be equal, and is used
by ==
.