#[non_exhaustive]pub struct LaunchTemplateInstanceMaintenanceOptions { /* private fields */ }
Expand description
The maintenance options of your instance.
Implementations§
source§impl LaunchTemplateInstanceMaintenanceOptions
impl LaunchTemplateInstanceMaintenanceOptions
sourcepub fn auto_recovery(&self) -> Option<&LaunchTemplateAutoRecoveryState>
pub fn auto_recovery(&self) -> Option<&LaunchTemplateAutoRecoveryState>
Disables the automatic recovery behavior of your instance or sets it to default.
source§impl LaunchTemplateInstanceMaintenanceOptions
impl LaunchTemplateInstanceMaintenanceOptions
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture LaunchTemplateInstanceMaintenanceOptions
.
Examples found in repository?
src/xml_deser.rs (line 53542)
53535 53536 53537 53538 53539 53540 53541 53542 53543 53544 53545 53546 53547 53548 53549 53550 53551 53552 53553 53554 53555 53556 53557 53558 53559 53560 53561 53562 53563
pub fn deser_structure_crate_model_launch_template_instance_maintenance_options(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<
crate::model::LaunchTemplateInstanceMaintenanceOptions,
aws_smithy_xml::decode::XmlDecodeError,
> {
#[allow(unused_mut)]
let mut builder = crate::model::LaunchTemplateInstanceMaintenanceOptions::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("autoRecovery") /* AutoRecovery com.amazonaws.ec2#LaunchTemplateInstanceMaintenanceOptions$AutoRecovery */ => {
let var_2563 =
Some(
Result::<crate::model::LaunchTemplateAutoRecoveryState, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::LaunchTemplateAutoRecoveryState::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_auto_recovery(var_2563);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for LaunchTemplateInstanceMaintenanceOptions
impl Clone for LaunchTemplateInstanceMaintenanceOptions
source§fn clone(&self) -> LaunchTemplateInstanceMaintenanceOptions
fn clone(&self) -> LaunchTemplateInstanceMaintenanceOptions
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