Struct aws_sdk_pipes::model::BatchContainerOverrides
source · #[non_exhaustive]pub struct BatchContainerOverrides { /* private fields */ }
Expand description
The overrides that are sent to a container.
Implementations§
source§impl BatchContainerOverrides
impl BatchContainerOverrides
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 task definition.
sourcepub fn environment(&self) -> Option<&[BatchEnvironmentVariable]>
pub fn environment(&self) -> Option<&[BatchEnvironmentVariable]>
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 task definition.
Environment variables cannot start with "Batch
". This naming convention is reserved for variables that Batch sets.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
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.
sourcepub fn resource_requirements(&self) -> Option<&[BatchResourceRequirement]>
pub fn resource_requirements(&self) -> Option<&[BatchResourceRequirement]>
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
.
source§impl BatchContainerOverrides
impl BatchContainerOverrides
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture BatchContainerOverrides
.
Trait Implementations§
source§impl Clone for BatchContainerOverrides
impl Clone for BatchContainerOverrides
source§fn clone(&self) -> BatchContainerOverrides
fn clone(&self) -> BatchContainerOverrides
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BatchContainerOverrides
impl Debug for BatchContainerOverrides
source§impl PartialEq<BatchContainerOverrides> for BatchContainerOverrides
impl PartialEq<BatchContainerOverrides> for BatchContainerOverrides
source§fn eq(&self, other: &BatchContainerOverrides) -> bool
fn eq(&self, other: &BatchContainerOverrides) -> bool
self
and other
values to be equal, and is used
by ==
.