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 ==
.impl StructuralPartialEq for ComputeAttributes
Auto Trait Implementations§
impl Freeze for ComputeAttributes
impl RefUnwindSafe for ComputeAttributes
impl Send for ComputeAttributes
impl Sync for ComputeAttributes
impl Unpin for ComputeAttributes
impl UnwindSafe for ComputeAttributes
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