pub struct ContainerOverrides {
pub command: Option<Vec<String>>,
pub environment: Option<Vec<KeyValuePair>>,
pub instance_type: Option<String>,
pub memory: Option<i64>,
pub resource_requirements: Option<Vec<ResourceRequirement>>,
pub vcpus: Option<i64>,
}Expand description
The overrides that should be sent to a container.
Fields§
§command: Option<Vec<String>>The command to send to the container that overrides the default command from the Docker image or the job definition.
environment: Option<Vec<KeyValuePair>>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.
instance_type: Option<String>The instance type to use for a multi-node parallel job. This parameter is not valid for single-node container jobs.
memory: Option<i64>The number of MiB of memory reserved for the job. This value overrides the value set in the job definition.
resource_requirements: Option<Vec<ResourceRequirement>>The type and amount of a resource to assign to a container. This value overrides the value set in the job definition. Currently, the only supported resource is GPU.
vcpus: Option<i64>The number of vCPUs to reserve for the container. This value overrides the value set in the job definition.
Trait Implementations§
Source§impl Clone for ContainerOverrides
impl Clone for ContainerOverrides
Source§fn clone(&self) -> ContainerOverrides
fn clone(&self) -> ContainerOverrides
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more