[−][src]Struct rusoto_ecs::ResourceRequirement
The type and amount of a resource to assign to a container. The supported resource types are GPUs and Elastic Inference accelerators. For more information, see Working with GPUs on Amazon ECS or Working with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide
Fields
type_: String
The type of resource to assign to a container. The supported values are GPU
or InferenceAccelerator
.
value: String
The value for the specified resource type.
If the GPU
type is used, the value is the number of physical GPUs
the Amazon ECS container agent will reserve for the container. The number of GPUs reserved for all containers in a task should not exceed the number of available GPUs on the container instance the task is launched on.
If the InferenceAccelerator
type is used, the value
should match the deviceName
for an InferenceAccelerator specified in a task definition.
Trait Implementations
impl Clone for ResourceRequirement
[src]
pub fn clone(&self) -> ResourceRequirement
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ResourceRequirement
[src]
impl Default for ResourceRequirement
[src]
pub fn default() -> ResourceRequirement
[src]
impl<'de> Deserialize<'de> for ResourceRequirement
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<ResourceRequirement> for ResourceRequirement
[src]
pub fn eq(&self, other: &ResourceRequirement) -> bool
[src]
pub fn ne(&self, other: &ResourceRequirement) -> bool
[src]
impl Serialize for ResourceRequirement
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for ResourceRequirement
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResourceRequirement
[src]
impl Send for ResourceRequirement
[src]
impl Sync for ResourceRequirement
[src]
impl Unpin for ResourceRequirement
[src]
impl UnwindSafe for ResourceRequirement
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,