Struct aws_sdk_ec2::model::StateReason
source · [−]#[non_exhaustive]pub struct StateReason { /* private fields */ }Expand description
Describes a state change.
Implementations
sourceimpl StateReason
impl StateReason
sourcepub fn message(&self) -> Option<&str>
pub fn message(&self) -> Option<&str>
The message for the state change.
-
Server.InsufficientInstanceCapacity: There was insufficient capacity available to satisfy the launch request. -
Server.InternalError: An internal error caused the instance to terminate during launch. -
Server.ScheduledStop: The instance was stopped due to a scheduled retirement. -
Server.SpotInstanceShutdown: The instance was stopped because the number of Spot requests with a maximum price equal to or higher than the Spot price exceeded available capacity or because of an increase in the Spot price. -
Server.SpotInstanceTermination: The instance was terminated because the number of Spot requests with a maximum price equal to or higher than the Spot price exceeded available capacity or because of an increase in the Spot price. -
Client.InstanceInitiatedShutdown: The instance was shut down using theshutdown -hcommand from the instance. -
Client.InstanceTerminated: The instance was terminated or rebooted during AMI creation. -
Client.InternalError: A client error caused the instance to terminate during launch. -
Client.InvalidSnapshot.NotFound: The specified snapshot was not found. -
Client.UserInitiatedHibernate: Hibernation was initiated on the instance. -
Client.UserInitiatedShutdown: The instance was shut down using the Amazon EC2 API. -
Client.VolumeLimitExceeded: The limit on the number of EBS volumes or total storage was exceeded. Decrease usage or request an increase in your account limits.
sourceimpl StateReason
impl StateReason
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture StateReason.
Trait Implementations
sourceimpl Clone for StateReason
impl Clone for StateReason
sourcefn clone(&self) -> StateReason
fn clone(&self) -> StateReason
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 StateReason
impl Debug for StateReason
sourceimpl PartialEq<StateReason> for StateReason
impl PartialEq<StateReason> for StateReason
sourcefn eq(&self, other: &StateReason) -> bool
fn eq(&self, other: &StateReason) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &StateReason) -> bool
fn ne(&self, other: &StateReason) -> bool
This method tests for !=.
impl StructuralPartialEq for StateReason
Auto Trait Implementations
impl RefUnwindSafe for StateReason
impl Send for StateReason
impl Sync for StateReason
impl Unpin for StateReason
impl UnwindSafe for StateReason
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> 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