Struct aws_sdk_ec2::model::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
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
sourceimpl 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.
sourceimpl ActiveInstance
impl ActiveInstance
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ActiveInstance
Trait Implementations
sourceimpl Clone for ActiveInstance
impl Clone for ActiveInstance
sourcefn clone(&self) -> ActiveInstance
fn clone(&self) -> ActiveInstance
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ActiveInstance
impl Debug for ActiveInstance
sourceimpl PartialEq<ActiveInstance> for ActiveInstance
impl PartialEq<ActiveInstance> for ActiveInstance
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &ActiveInstance) -> bool
fn ne(&self, other: &ActiveInstance) -> bool
This method tests for !=.
impl StructuralPartialEq for ActiveInstance
Auto Trait Implementations
impl RefUnwindSafe for ActiveInstance
impl Send for ActiveInstance
impl Sync for ActiveInstance
impl Unpin for ActiveInstance
impl UnwindSafe for ActiveInstance
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more