Struct aws_sdk_ec2::model::EbsInfo

source ·
#[non_exhaustive]
pub struct EbsInfo { /* private fields */ }
Expand description

Describes the Amazon EBS features supported by the instance type.

Implementations§

Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized instances in Amazon EC2 User Guide.

Indicates whether Amazon EBS encryption is supported.

Describes the optimized EBS performance for the instance type.

Indicates whether non-volatile memory express (NVMe) is supported.

Creates a new builder-style object to manufacture EbsInfo.

Examples found in repository?
src/xml_deser.rs (line 59820)
59816
59817
59818
59819
59820
59821
59822
59823
59824
59825
59826
59827
59828
59829
59830
59831
59832
59833
59834
59835
59836
59837
59838
59839
59840
59841
59842
59843
59844
59845
59846
59847
59848
59849
59850
59851
59852
59853
59854
59855
59856
59857
59858
59859
59860
59861
59862
59863
59864
59865
59866
59867
59868
59869
59870
59871
59872
59873
59874
59875
59876
59877
59878
59879
pub fn deser_structure_crate_model_ebs_info(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::EbsInfo, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::EbsInfo::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("ebsOptimizedSupport") /* EbsOptimizedSupport com.amazonaws.ec2#EbsInfo$EbsOptimizedSupport */ =>  {
                let var_2914 =
                    Some(
                        Result::<crate::model::EbsOptimizedSupport, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::EbsOptimizedSupport::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_ebs_optimized_support(var_2914);
            }
            ,
            s if s.matches("encryptionSupport") /* EncryptionSupport com.amazonaws.ec2#EbsInfo$EncryptionSupport */ =>  {
                let var_2915 =
                    Some(
                        Result::<crate::model::EbsEncryptionSupport, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::EbsEncryptionSupport::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_encryption_support(var_2915);
            }
            ,
            s if s.matches("ebsOptimizedInfo") /* EbsOptimizedInfo com.amazonaws.ec2#EbsInfo$EbsOptimizedInfo */ =>  {
                let var_2916 =
                    Some(
                        crate::xml_deser::deser_structure_crate_model_ebs_optimized_info(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_ebs_optimized_info(var_2916);
            }
            ,
            s if s.matches("nvmeSupport") /* NvmeSupport com.amazonaws.ec2#EbsInfo$NvmeSupport */ =>  {
                let var_2917 =
                    Some(
                        Result::<crate::model::EbsNvmeSupport, aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::model::EbsNvmeSupport::from(
                                aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_nvme_support(var_2917);
            }
            ,
            _ => {}
        }
    }
    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