Struct aws_sdk_outposts::types::ComputeAttributes
source · #[non_exhaustive]pub struct ComputeAttributes {
pub host_id: Option<String>,
pub state: Option<ComputeAssetState>,
pub instance_families: Option<Vec<String>>,
}
Expand description
Information about compute hardware assets.
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.host_id: Option<String>
The host ID of the Dedicated Host on the asset.
state: Option<ComputeAssetState>
The state.
-
ACTIVE - The asset is available and can provide capacity for new compute resources.
-
ISOLATED - The asset is undergoing maintenance and can't provide capacity for new compute resources. Existing compute resources on the asset are not affected.
-
RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before the asset can be replaced.
instance_families: Option<Vec<String>>
A list of the names of instance families that are currently associated with a given asset.
Implementations§
source§impl ComputeAttributes
impl ComputeAttributes
sourcepub fn state(&self) -> Option<&ComputeAssetState>
pub fn state(&self) -> Option<&ComputeAssetState>
The state.
-
ACTIVE - The asset is available and can provide capacity for new compute resources.
-
ISOLATED - The asset is undergoing maintenance and can't provide capacity for new compute resources. Existing compute resources on the asset are not affected.
-
RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before the asset can be replaced.
sourcepub fn instance_families(&self) -> &[String]
pub fn instance_families(&self) -> &[String]
A list of the names of instance families that are currently associated with a given asset.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .instance_families.is_none()
.
source§impl ComputeAttributes
impl ComputeAttributes
sourcepub fn builder() -> ComputeAttributesBuilder
pub fn builder() -> ComputeAttributesBuilder
Creates a new builder-style object to manufacture ComputeAttributes
.
Trait Implementations§
source§impl Clone for ComputeAttributes
impl Clone for ComputeAttributes
source§fn clone(&self) -> ComputeAttributes
fn clone(&self) -> ComputeAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComputeAttributes
impl Debug for ComputeAttributes
source§impl PartialEq for ComputeAttributes
impl PartialEq for ComputeAttributes
source§fn eq(&self, other: &ComputeAttributes) -> bool
fn eq(&self, other: &ComputeAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.