Struct aws_sdk_ec2::model::EfaInfo
source · #[non_exhaustive]pub struct EfaInfo { /* private fields */ }
Expand description
Describes the Elastic Fabric Adapters for the instance type.
Implementations§
source§impl EfaInfo
impl EfaInfo
sourcepub fn maximum_efa_interfaces(&self) -> Option<i32>
pub fn maximum_efa_interfaces(&self) -> Option<i32>
The maximum number of Elastic Fabric Adapters for the instance type.
source§impl EfaInfo
impl EfaInfo
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EfaInfo
.
Examples found in repository?
src/xml_deser.rs (line 65522)
65518 65519 65520 65521 65522 65523 65524 65525 65526 65527 65528 65529 65530 65531 65532 65533 65534 65535 65536 65537 65538 65539 65540 65541 65542 65543 65544
pub fn deser_structure_crate_model_efa_info(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::EfaInfo, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::EfaInfo::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("maximumEfaInterfaces") /* MaximumEfaInterfaces com.amazonaws.ec2#EfaInfo$MaximumEfaInterfaces */ => {
let var_3228 =
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#MaximumEfaInterfaces`)"))
}
?
)
;
builder = builder.set_maximum_efa_interfaces(var_3228);
}
,
_ => {}
}
}
Ok(builder.build())
}