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 ==
.