pub struct AutoScalingInstanceDetails {
pub auto_scaling_group_name: String,
pub availability_zone: String,
pub health_status: String,
pub instance_id: String,
pub instance_type: Option<String>,
pub launch_configuration_name: Option<String>,
pub launch_template: Option<LaunchTemplateSpecification>,
pub lifecycle_state: String,
pub protected_from_scale_in: bool,
pub weighted_capacity: Option<String>,
}
Expand description
Describes an EC2 instance associated with an Auto Scaling group.
Fields
auto_scaling_group_name: String
The name of the Auto Scaling group for the instance.
availability_zone: String
The Availability Zone for the instance.
health_status: String
The last reported health status of this instance. "Healthy" means that the instance is healthy and should remain in service. "Unhealthy" means that the instance is unhealthy and Amazon EC2 Auto Scaling should terminate and replace it.
instance_id: String
The ID of the instance.
instance_type: Option<String>
The instance type of the EC2 instance.
launch_configuration_name: Option<String>
The launch configuration used to launch the instance. This value is not available if you attached the instance to the Auto Scaling group.
launch_template: Option<LaunchTemplateSpecification>
The launch template for the instance.
lifecycle_state: String
The lifecycle state for the instance. The Quarantined
state is not used. For information about lifecycle states, see Instance lifecycle in the Amazon EC2 Auto Scaling User Guide.
Valid Values: Pending
| Pending:Wait
| Pending:Proceed
| Quarantined
| InService
| Terminating
| Terminating:Wait
| Terminating:Proceed
| Terminated
| Detaching
| Detached
| EnteringStandby
| Standby
| Warmed:Pending
| Warmed:Pending:Wait
| Warmed:Pending:Proceed
| Warmed:Terminating
| Warmed:Terminating:Wait
| Warmed:Terminating:Proceed
| Warmed:Terminated
| Warmed:Stopped
| Warmed:Running
protected_from_scale_in: bool
Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling when scaling in.
weighted_capacity: Option<String>
The number of capacity units contributed by the instance based on its instance type.
Valid Range: Minimum value of 1. Maximum value of 999.
Trait Implementations
sourceimpl Clone for AutoScalingInstanceDetails
impl Clone for AutoScalingInstanceDetails
sourcefn clone(&self) -> AutoScalingInstanceDetails
fn clone(&self) -> AutoScalingInstanceDetails
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 AutoScalingInstanceDetails
impl Debug for AutoScalingInstanceDetails
sourceimpl Default for AutoScalingInstanceDetails
impl Default for AutoScalingInstanceDetails
sourcefn default() -> AutoScalingInstanceDetails
fn default() -> AutoScalingInstanceDetails
Returns the “default value” for a type. Read more
sourceimpl PartialEq<AutoScalingInstanceDetails> for AutoScalingInstanceDetails
impl PartialEq<AutoScalingInstanceDetails> for AutoScalingInstanceDetails
sourcefn eq(&self, other: &AutoScalingInstanceDetails) -> bool
fn eq(&self, other: &AutoScalingInstanceDetails) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AutoScalingInstanceDetails) -> bool
fn ne(&self, other: &AutoScalingInstanceDetails) -> bool
This method tests for !=
.
impl StructuralPartialEq for AutoScalingInstanceDetails
Auto Trait Implementations
impl RefUnwindSafe for AutoScalingInstanceDetails
impl Send for AutoScalingInstanceDetails
impl Sync for AutoScalingInstanceDetails
impl Unpin for AutoScalingInstanceDetails
impl UnwindSafe for AutoScalingInstanceDetails
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