Struct aws_sdk_ec2::model::CreateFleetInstance
source · #[non_exhaustive]pub struct CreateFleetInstance { /* private fields */ }
Expand description
Describes the instances that were launched by the fleet.
Implementations§
source§impl CreateFleetInstance
impl CreateFleetInstance
sourcepub fn launch_template_and_overrides(
&self
) -> Option<&LaunchTemplateAndOverridesResponse>
pub fn launch_template_and_overrides(
&self
) -> Option<&LaunchTemplateAndOverridesResponse>
The launch templates and overrides that were used for launching the instances. The values that you specify in the Overrides replace the values in the launch template.
sourcepub fn lifecycle(&self) -> Option<&InstanceLifecycle>
pub fn lifecycle(&self) -> Option<&InstanceLifecycle>
Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.
sourcepub fn instance_ids(&self) -> Option<&[String]>
pub fn instance_ids(&self) -> Option<&[String]>
The IDs of the instances.
sourcepub fn instance_type(&self) -> Option<&InstanceType>
pub fn instance_type(&self) -> Option<&InstanceType>
The instance type.
sourcepub fn platform(&self) -> Option<&PlatformValues>
pub fn platform(&self) -> Option<&PlatformValues>
The value is Windows
for Windows instances. Otherwise, the value is blank.
source§impl CreateFleetInstance
impl CreateFleetInstance
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateFleetInstance
.
Examples found in repository?
src/xml_deser.rs (line 40537)
40533 40534 40535 40536 40537 40538 40539 40540 40541 40542 40543 40544 40545 40546 40547 40548 40549 40550 40551 40552 40553 40554 40555 40556 40557 40558 40559 40560 40561 40562 40563 40564 40565 40566 40567 40568 40569 40570 40571 40572 40573 40574 40575 40576 40577 40578 40579 40580 40581 40582 40583 40584 40585 40586 40587 40588 40589 40590 40591 40592 40593 40594 40595 40596 40597 40598 40599 40600 40601 40602 40603 40604 40605 40606
pub fn deser_structure_crate_model_create_fleet_instance(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CreateFleetInstance, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CreateFleetInstance::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("launchTemplateAndOverrides") /* LaunchTemplateAndOverrides com.amazonaws.ec2#CreateFleetInstance$LaunchTemplateAndOverrides */ => {
let var_1730 =
Some(
crate::xml_deser::deser_structure_crate_model_launch_template_and_overrides_response(&mut tag)
?
)
;
builder = builder.set_launch_template_and_overrides(var_1730);
}
,
s if s.matches("lifecycle") /* Lifecycle com.amazonaws.ec2#CreateFleetInstance$Lifecycle */ => {
let var_1731 =
Some(
Result::<crate::model::InstanceLifecycle, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceLifecycle::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_lifecycle(var_1731);
}
,
s if s.matches("instanceIds") /* InstanceIds com.amazonaws.ec2#CreateFleetInstance$InstanceIds */ => {
let var_1732 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_ids_set(&mut tag)
?
)
;
builder = builder.set_instance_ids(var_1732);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#CreateFleetInstance$InstanceType */ => {
let var_1733 =
Some(
Result::<crate::model::InstanceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::InstanceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_instance_type(var_1733);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#CreateFleetInstance$Platform */ => {
let var_1734 =
Some(
Result::<crate::model::PlatformValues, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PlatformValues::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_platform(var_1734);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CreateFleetInstance
impl Clone for CreateFleetInstance
source§fn clone(&self) -> CreateFleetInstance
fn clone(&self) -> CreateFleetInstance
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