Struct aws_sdk_securityhub::types::AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
source · #[non_exhaustive]pub struct AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails {
pub type: Option<String>,
pub value: Option<String>,
}
Expand description
A resource to assign to a container.
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.type: Option<String>
The type of resource to assign to a container. Valid values are GPU
or InferenceAccelerator
.
value: Option<String>
The value for the specified resource type.
For GPU
, the value is the number of physical GPUs the Amazon ECS container agent reserves for the container.
For InferenceAccelerator
, the value should match the DeviceName
attribute of an entry in InferenceAccelerators
.
Implementations§
source§impl AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
impl AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
sourcepub fn type(&self) -> Option<&str>
pub fn type(&self) -> Option<&str>
The type of resource to assign to a container. Valid values are GPU
or InferenceAccelerator
.
sourcepub fn value(&self) -> Option<&str>
pub fn value(&self) -> Option<&str>
The value for the specified resource type.
For GPU
, the value is the number of physical GPUs the Amazon ECS container agent reserves for the container.
For InferenceAccelerator
, the value should match the DeviceName
attribute of an entry in InferenceAccelerators
.
source§impl AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
impl AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
sourcepub fn builder(
) -> AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetailsBuilder
pub fn builder( ) -> AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetailsBuilder
Creates a new builder-style object to manufacture AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
.
Trait Implementations§
source§impl Clone for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
impl Clone for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
source§fn clone(
&self
) -> AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
fn clone( &self ) -> AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
impl PartialEq for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
source§fn eq(
&self,
other: &AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
) -> bool
fn eq( &self, other: &AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails ) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
Auto Trait Implementations§
impl Freeze for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
impl RefUnwindSafe for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
impl Send for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
impl Sync for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
impl Unpin for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
impl UnwindSafe for AwsEcsTaskDefinitionContainerDefinitionsResourceRequirementsDetails
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more