Struct aws_sdk_ecs::model::ContainerOverride [−][src]
#[non_exhaustive]pub struct ContainerOverride {
pub name: Option<String>,
pub command: Option<Vec<String>>,
pub environment: Option<Vec<KeyValuePair>>,
pub environment_files: Option<Vec<EnvironmentFile>>,
pub cpu: Option<i32>,
pub memory: Option<i32>,
pub memory_reservation: Option<i32>,
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 (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.name: Option<String>
The name of the container that receives the override. This parameter is required if any override is specified.
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.
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.
cpu: 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.
memory: 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.
memory_reservation: 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.
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.
Implementations
The name of the container that receives the override. This parameter is required if any override is specified.
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.
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.
A list of files containing the environment variables to pass to a container, instead of the value from the container definition.
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.
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.
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.
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.
Creates a new builder-style object to manufacture ContainerOverride
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more