Struct rusoto_ecs::ContainerOverride
source · [−]pub struct ContainerOverride {
pub command: Option<Vec<String>>,
pub cpu: Option<i64>,
pub environment: Option<Vec<KeyValuePair>>,
pub environment_files: Option<Vec<EnvironmentFile>>,
pub memory: Option<i64>,
pub memory_reservation: Option<i64>,
pub name: Option<String>,
pub resource_requirements: Option<Vec<ResourceRequirement>>,
}
Expand description
The overrides that should be sent to a container. An empty container override can be passed in. An example of an empty container override would be {"containerOverrides": [ ] }
. If a non-empty container override is specified, the name
parameter must be included.
Fields
command: Option<Vec<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.
cpu: Option<i64>
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.
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 task definition. You must also specify a container name.
environment_files: Option<Vec<EnvironmentFile>>
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
memory: Option<i64>
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.
memory_reservation: Option<i64>
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.
name: Option<String>
The name of the container that receives the override. This parameter is required if any override is specified.
resource_requirements: Option<Vec<ResourceRequirement>>
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.
Trait Implementations
sourceimpl Clone for ContainerOverride
impl Clone for ContainerOverride
sourcefn clone(&self) -> ContainerOverride
fn clone(&self) -> ContainerOverride
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ContainerOverride
impl Debug for ContainerOverride
sourceimpl Default for ContainerOverride
impl Default for ContainerOverride
sourcefn default() -> ContainerOverride
fn default() -> ContainerOverride
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ContainerOverride
impl<'de> Deserialize<'de> for ContainerOverride
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ContainerOverride> for ContainerOverride
impl PartialEq<ContainerOverride> for ContainerOverride
sourcefn eq(&self, other: &ContainerOverride) -> bool
fn eq(&self, other: &ContainerOverride) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ContainerOverride) -> bool
fn ne(&self, other: &ContainerOverride) -> bool
This method tests for !=
.
sourceimpl Serialize for ContainerOverride
impl Serialize for ContainerOverride
impl StructuralPartialEq for ContainerOverride
Auto Trait Implementations
impl RefUnwindSafe for ContainerOverride
impl Send for ContainerOverride
impl Sync for ContainerOverride
impl Unpin for ContainerOverride
impl UnwindSafe for ContainerOverride
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more