Struct aws_sdk_ec2::types::ActiveInstance
source · #[non_exhaustive]pub struct ActiveInstance {
pub instance_id: Option<String>,
pub instance_type: Option<String>,
pub spot_instance_request_id: Option<String>,
pub instance_health: Option<InstanceHealthStatus>,
}
Expand description
Describes a running instance in a Spot Fleet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.instance_id: Option<String>
The ID of the instance.
instance_type: Option<String>
The instance type.
spot_instance_request_id: Option<String>
The ID of the Spot Instance request.
instance_health: Option<InstanceHealthStatus>
The health status of the instance. If the status of either the instance status check or the system status check is impaired
, the health status of the instance is unhealthy
. Otherwise, the health status is healthy
.
Implementations§
source§impl ActiveInstance
impl ActiveInstance
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The instance type.
sourcepub fn spot_instance_request_id(&self) -> Option<&str>
pub fn spot_instance_request_id(&self) -> Option<&str>
The ID of the Spot Instance request.
sourcepub fn instance_health(&self) -> Option<&InstanceHealthStatus>
pub fn instance_health(&self) -> Option<&InstanceHealthStatus>
The health status of the instance. If the status of either the instance status check or the system status check is impaired
, the health status of the instance is unhealthy
. Otherwise, the health status is healthy
.
source§impl ActiveInstance
impl ActiveInstance
sourcepub fn builder() -> ActiveInstanceBuilder
pub fn builder() -> ActiveInstanceBuilder
Creates a new builder-style object to manufacture ActiveInstance
.
Trait Implementations§
source§impl Clone for ActiveInstance
impl Clone for ActiveInstance
source§fn clone(&self) -> ActiveInstance
fn clone(&self) -> ActiveInstance
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ActiveInstance
impl Debug for ActiveInstance
source§impl PartialEq for ActiveInstance
impl PartialEq for ActiveInstance
source§fn eq(&self, other: &ActiveInstance) -> bool
fn eq(&self, other: &ActiveInstance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ActiveInstance
Auto Trait Implementations§
impl Freeze for ActiveInstance
impl RefUnwindSafe for ActiveInstance
impl Send for ActiveInstance
impl Sync for ActiveInstance
impl Unpin for ActiveInstance
impl UnwindSafe for ActiveInstance
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.