Struct aws_sdk_ec2::model::DescribeFleetsInstances
source · #[non_exhaustive]pub struct DescribeFleetsInstances { /* private fields */ }
Expand description
Describes the instances that were launched by the fleet.
Implementations§
source§impl DescribeFleetsInstances
impl DescribeFleetsInstances
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 DescribeFleetsInstances
impl DescribeFleetsInstances
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DescribeFleetsInstances
.
Examples found in repository?
src/xml_deser.rs (line 65142)
65138 65139 65140 65141 65142 65143 65144 65145 65146 65147 65148 65149 65150 65151 65152 65153 65154 65155 65156 65157 65158 65159 65160 65161 65162 65163 65164 65165 65166 65167 65168 65169 65170 65171 65172 65173 65174 65175 65176 65177 65178 65179 65180 65181 65182 65183 65184 65185 65186 65187 65188 65189 65190 65191 65192 65193 65194 65195 65196 65197 65198 65199 65200 65201 65202 65203 65204 65205 65206 65207 65208 65209 65210 65211
pub fn deser_structure_crate_model_describe_fleets_instances(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::DescribeFleetsInstances, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::DescribeFleetsInstances::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("launchTemplateAndOverrides") /* LaunchTemplateAndOverrides com.amazonaws.ec2#DescribeFleetsInstances$LaunchTemplateAndOverrides */ => {
let var_3214 =
Some(
crate::xml_deser::deser_structure_crate_model_launch_template_and_overrides_response(&mut tag)
?
)
;
builder = builder.set_launch_template_and_overrides(var_3214);
}
,
s if s.matches("lifecycle") /* Lifecycle com.amazonaws.ec2#DescribeFleetsInstances$Lifecycle */ => {
let var_3215 =
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_3215);
}
,
s if s.matches("instanceIds") /* InstanceIds com.amazonaws.ec2#DescribeFleetsInstances$InstanceIds */ => {
let var_3216 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_ids_set(&mut tag)
?
)
;
builder = builder.set_instance_ids(var_3216);
}
,
s if s.matches("instanceType") /* InstanceType com.amazonaws.ec2#DescribeFleetsInstances$InstanceType */ => {
let var_3217 =
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_3217);
}
,
s if s.matches("platform") /* Platform com.amazonaws.ec2#DescribeFleetsInstances$Platform */ => {
let var_3218 =
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_3218);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for DescribeFleetsInstances
impl Clone for DescribeFleetsInstances
source§fn clone(&self) -> DescribeFleetsInstances
fn clone(&self) -> DescribeFleetsInstances
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