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§
source§impl EbsInfo
impl EbsInfo
sourcepub fn ebs_optimized_support(&self) -> Option<&EbsOptimizedSupport>
pub fn ebs_optimized_support(&self) -> Option<&EbsOptimizedSupport>
Indicates whether the instance type is Amazon EBS-optimized. For more information, see Amazon EBS-optimized instances in Amazon EC2 User Guide.
sourcepub fn encryption_support(&self) -> Option<&EbsEncryptionSupport>
pub fn encryption_support(&self) -> Option<&EbsEncryptionSupport>
Indicates whether Amazon EBS encryption is supported.
sourcepub fn ebs_optimized_info(&self) -> Option<&EbsOptimizedInfo>
pub fn ebs_optimized_info(&self) -> Option<&EbsOptimizedInfo>
Describes the optimized EBS performance for the instance type.
sourcepub fn nvme_support(&self) -> Option<&EbsNvmeSupport>
pub fn nvme_support(&self) -> Option<&EbsNvmeSupport>
Indicates whether non-volatile memory express (NVMe) is supported.
source§impl EbsInfo
impl EbsInfo
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
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())
}