Struct aws_sdk_pipes::model::EcsContainerOverride
source · #[non_exhaustive]pub struct EcsContainerOverride { /* private fields */ }
Expand description
The overrides that are sent to a container. An empty container override can be passed in. An example of an empty container override is {"containerOverrides": [ ] }
. If a non-empty container override is specified, the name
parameter must be included.
Implementations§
source§impl EcsContainerOverride
impl EcsContainerOverride
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. You must also specify a container name.
sourcepub fn cpu(&self) -> Option<i32>
pub fn cpu(&self) -> Option<i32>
The number of cpu
units reserved for the container, instead of the default value from the task definition. You must also specify a container name.
sourcepub fn environment(&self) -> Option<&[EcsEnvironmentVariable]>
pub fn environment(&self) -> Option<&[EcsEnvironmentVariable]>
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. You must also specify a container name.
sourcepub fn environment_files(&self) -> Option<&[EcsEnvironmentFile]>
pub fn environment_files(&self) -> Option<&[EcsEnvironmentFile]>
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
sourcepub fn memory(&self) -> Option<i32>
pub fn memory(&self) -> Option<i32>
The hard limit (in MiB) of memory to present to the container, instead of the default value from the task definition. If your container attempts to exceed the memory specified here, the container is killed. You must also specify a container name.
sourcepub fn memory_reservation(&self) -> Option<i32>
pub fn memory_reservation(&self) -> Option<i32>
The soft limit (in MiB) of memory to reserve for the container, instead of the default value from the task definition. You must also specify a container name.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the container that receives the override. This parameter is required if any override is specified.
sourcepub fn resource_requirements(&self) -> Option<&[EcsResourceRequirement]>
pub fn resource_requirements(&self) -> Option<&[EcsResourceRequirement]>
The type and amount of a resource to assign to a container, instead of the default value from the task definition. The only supported resource is a GPU.
source§impl EcsContainerOverride
impl EcsContainerOverride
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EcsContainerOverride
.
Trait Implementations§
source§impl Clone for EcsContainerOverride
impl Clone for EcsContainerOverride
source§fn clone(&self) -> EcsContainerOverride
fn clone(&self) -> EcsContainerOverride
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EcsContainerOverride
impl Debug for EcsContainerOverride
source§impl PartialEq<EcsContainerOverride> for EcsContainerOverride
impl PartialEq<EcsContainerOverride> for EcsContainerOverride
source§fn eq(&self, other: &EcsContainerOverride) -> bool
fn eq(&self, other: &EcsContainerOverride) -> bool
self
and other
values to be equal, and is used
by ==
.