#[non_exhaustive]
pub struct CreateFleetInstance { /* private fields */ }
Expand description

Describes the instances that were launched by the fleet.

Implementations§

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.

Indicates if the instance that was launched is a Spot Instance or On-Demand Instance.

The IDs of the instances.

The instance type.

The value is Windows for Windows instances. Otherwise, the value is blank.

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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more