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

Describe details about a fast-launch enabled Windows image that meets the requested criteria. Criteria are defined by the DescribeFastLaunchImages action filters.

Implementations§

The image ID that identifies the fast-launch enabled Windows image.

The resource type that is used for pre-provisioning the Windows AMI. Supported values include: snapshot.

A group of parameters that are used for pre-provisioning the associated Windows AMI using snapshots.

The launch template that the fast-launch enabled Windows AMI uses when it launches Windows instances from pre-provisioned snapshots.

The maximum number of parallel instances that are launched for creating resources.

The owner ID for the fast-launch enabled Windows AMI.

The current state of faster launching for the specified Windows AMI.

The reason that faster launching for the Windows AMI changed to the current state.

The time that faster launching for the Windows AMI changed to the current state.

Creates a new builder-style object to manufacture DescribeFastLaunchImagesSuccessItem.

Examples found in repository?
src/xml_deser.rs (line 44414)
44409
44410
44411
44412
44413
44414
44415
44416
44417
44418
44419
44420
44421
44422
44423
44424
44425
44426
44427
44428
44429
44430
44431
44432
44433
44434
44435
44436
44437
44438
44439
44440
44441
44442
44443
44444
44445
44446
44447
44448
44449
44450
44451
44452
44453
44454
44455
44456
44457
44458
44459
44460
44461
44462
44463
44464
44465
44466
44467
44468
44469
44470
44471
44472
44473
44474
44475
44476
44477
44478
44479
44480
44481
44482
44483
44484
44485
44486
44487
44488
44489
44490
44491
44492
44493
44494
44495
44496
44497
44498
44499
44500
44501
44502
44503
44504
44505
44506
44507
44508
44509
44510
44511
44512
44513
44514
44515
44516
44517
44518
44519
44520
44521
44522
44523
44524
44525
44526
44527
44528
44529
44530
44531
44532
44533
44534
44535
44536
44537
pub fn deser_structure_crate_model_describe_fast_launch_images_success_item(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::DescribeFastLaunchImagesSuccessItem, aws_smithy_xml::decode::XmlDecodeError>
{
    #[allow(unused_mut)]
    let mut builder = crate::model::DescribeFastLaunchImagesSuccessItem::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("imageId") /* ImageId com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$ImageId */ =>  {
                let var_1951 =
                    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_image_id(var_1951);
            }
            ,
            s if s.matches("resourceType") /* ResourceType com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$ResourceType */ =>  {
                let var_1952 =
                    Some(
                        Result::<crate::model::FastLaunchResourceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::FastLaunchResourceType::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_resource_type(var_1952);
            }
            ,
            s if s.matches("snapshotConfiguration") /* SnapshotConfiguration com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$SnapshotConfiguration */ =>  {
                let var_1953 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_fast_launch_snapshot_configuration_response(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_snapshot_configuration(var_1953);
            }
            ,
            s if s.matches("launchTemplate") /* LaunchTemplate com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$LaunchTemplate */ =>  {
                let var_1954 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_fast_launch_launch_template_specification_response(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_launch_template(var_1954);
            }
            ,
            s if s.matches("maxParallelLaunches") /* MaxParallelLaunches com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$MaxParallelLaunches */ =>  {
                let var_1955 =
                    Some(
                         {
                            <i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                            .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.ec2#Integer`)"))
                        }
                        ?
                    )
                ;
                builder = builder.set_max_parallel_launches(var_1955);
            }
            ,
            s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$OwnerId */ =>  {
                let var_1956 =
                    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_owner_id(var_1956);
            }
            ,
            s if s.matches("state") /* State com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$State */ =>  {
                let var_1957 =
                    Some(
                        Result::<crate::model::FastLaunchStateCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::FastLaunchStateCode::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_state(var_1957);
            }
            ,
            s if s.matches("stateTransitionReason") /* StateTransitionReason com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$StateTransitionReason */ =>  {
                let var_1958 =
                    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_state_transition_reason(var_1958);
            }
            ,
            s if s.matches("stateTransitionTime") /* StateTransitionTime com.amazonaws.ec2#DescribeFastLaunchImagesSuccessItem$StateTransitionTime */ =>  {
                let var_1959 =
                    Some(
                        aws_smithy_types::DateTime::from_str(
                            aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            , aws_smithy_types::date_time::Format::DateTime
                        )
                        .map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (timestamp: `com.amazonaws.ec2#MillisecondDateTime`)"))
                        ?
                    )
                ;
                builder = builder.set_state_transition_time(var_1959);
            }
            ,
            _ => {}
        }
    }
    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