Struct aws_sdk_ec2::model::InstanceStatus
source · #[non_exhaustive]pub struct InstanceStatus { /* private fields */ }
Expand description
Describes the status of an instance.
Implementations§
source§impl InstanceStatus
impl InstanceStatus
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone of the instance.
sourcepub fn outpost_arn(&self) -> Option<&str>
pub fn outpost_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Outpost.
sourcepub fn events(&self) -> Option<&[InstanceStatusEvent]>
pub fn events(&self) -> Option<&[InstanceStatusEvent]>
Any scheduled events associated with the instance.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance.
sourcepub fn instance_state(&self) -> Option<&InstanceState>
pub fn instance_state(&self) -> Option<&InstanceState>
The intended state of the instance. DescribeInstanceStatus
requires that an instance be in the running
state.
sourcepub fn instance_status(&self) -> Option<&InstanceStatusSummary>
pub fn instance_status(&self) -> Option<&InstanceStatusSummary>
Reports impaired functionality that stems from issues internal to the instance, such as impaired reachability.
sourcepub fn system_status(&self) -> Option<&InstanceStatusSummary>
pub fn system_status(&self) -> Option<&InstanceStatusSummary>
Reports impaired functionality that stems from issues related to the systems that support an instance, such as hardware failures and network connectivity problems.
source§impl InstanceStatus
impl InstanceStatus
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InstanceStatus
.
Examples found in repository?
src/xml_deser.rs (line 47141)
47137 47138 47139 47140 47141 47142 47143 47144 47145 47146 47147 47148 47149 47150 47151 47152 47153 47154 47155 47156 47157 47158 47159 47160 47161 47162 47163 47164 47165 47166 47167 47168 47169 47170 47171 47172 47173 47174 47175 47176 47177 47178 47179 47180 47181 47182 47183 47184 47185 47186 47187 47188 47189 47190 47191 47192 47193 47194 47195 47196 47197 47198 47199 47200 47201 47202 47203 47204 47205 47206 47207 47208 47209 47210 47211 47212 47213 47214 47215 47216 47217 47218 47219 47220 47221 47222 47223 47224 47225 47226 47227
pub fn deser_structure_crate_model_instance_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InstanceStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("availabilityZone") /* AvailabilityZone com.amazonaws.ec2#InstanceStatus$AvailabilityZone */ => {
let var_2141 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_availability_zone(var_2141);
}
,
s if s.matches("outpostArn") /* OutpostArn com.amazonaws.ec2#InstanceStatus$OutpostArn */ => {
let var_2142 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_outpost_arn(var_2142);
}
,
s if s.matches("eventsSet") /* Events com.amazonaws.ec2#InstanceStatus$Events */ => {
let var_2143 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_status_event_list(&mut tag)
?
)
;
builder = builder.set_events(var_2143);
}
,
s if s.matches("instanceId") /* InstanceId com.amazonaws.ec2#InstanceStatus$InstanceId */ => {
let var_2144 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_instance_id(var_2144);
}
,
s if s.matches("instanceState") /* InstanceState com.amazonaws.ec2#InstanceStatus$InstanceState */ => {
let var_2145 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_state(&mut tag)
?
)
;
builder = builder.set_instance_state(var_2145);
}
,
s if s.matches("instanceStatus") /* InstanceStatus com.amazonaws.ec2#InstanceStatus$InstanceStatus */ => {
let var_2146 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_status_summary(&mut tag)
?
)
;
builder = builder.set_instance_status(var_2146);
}
,
s if s.matches("systemStatus") /* SystemStatus com.amazonaws.ec2#InstanceStatus$SystemStatus */ => {
let var_2147 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_status_summary(&mut tag)
?
)
;
builder = builder.set_system_status(var_2147);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for InstanceStatus
impl Clone for InstanceStatus
source§fn clone(&self) -> InstanceStatus
fn clone(&self) -> InstanceStatus
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 more