Struct aws_sdk_ec2::model::CreateFleetError
source · #[non_exhaustive]pub struct CreateFleetError { /* private fields */ }
Expand description
Describes the instances that could not be launched by the fleet.
Implementations§
source§impl CreateFleetError
impl CreateFleetError
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 could not be launched was a Spot Instance or On-Demand Instance.
sourcepub fn error_code(&self) -> Option<&str>
pub fn error_code(&self) -> Option<&str>
The error code that indicates why the instance could not be launched. For more information about error codes, see Error codes.
sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
The error message that describes why the instance could not be launched. For more information about error messages, see Error codes.
source§impl CreateFleetError
impl CreateFleetError
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateFleetError
.
Examples found in repository?
src/xml_deser.rs (line 40474)
40470 40471 40472 40473 40474 40475 40476 40477 40478 40479 40480 40481 40482 40483 40484 40485 40486 40487 40488 40489 40490 40491 40492 40493 40494 40495 40496 40497 40498 40499 40500 40501 40502 40503 40504 40505 40506 40507 40508 40509 40510 40511 40512 40513 40514 40515 40516 40517 40518 40519 40520 40521 40522 40523 40524 40525 40526 40527 40528 40529 40530 40531
pub fn deser_structure_crate_model_create_fleet_error(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CreateFleetError, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CreateFleetError::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("launchTemplateAndOverrides") /* LaunchTemplateAndOverrides com.amazonaws.ec2#CreateFleetError$LaunchTemplateAndOverrides */ => {
let var_1726 =
Some(
crate::xml_deser::deser_structure_crate_model_launch_template_and_overrides_response(&mut tag)
?
)
;
builder = builder.set_launch_template_and_overrides(var_1726);
}
,
s if s.matches("lifecycle") /* Lifecycle com.amazonaws.ec2#CreateFleetError$Lifecycle */ => {
let var_1727 =
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_1727);
}
,
s if s.matches("errorCode") /* ErrorCode com.amazonaws.ec2#CreateFleetError$ErrorCode */ => {
let var_1728 =
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_error_code(var_1728);
}
,
s if s.matches("errorMessage") /* ErrorMessage com.amazonaws.ec2#CreateFleetError$ErrorMessage */ => {
let var_1729 =
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_error_message(var_1729);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CreateFleetError
impl Clone for CreateFleetError
source§fn clone(&self) -> CreateFleetError
fn clone(&self) -> CreateFleetError
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