Struct aws_sdk_ec2::model::NetworkInfo
source · #[non_exhaustive]pub struct NetworkInfo { /* private fields */ }
Expand description
Describes the networking features of the instance type.
Implementations§
source§impl NetworkInfo
impl NetworkInfo
sourcepub fn network_performance(&self) -> Option<&str>
pub fn network_performance(&self) -> Option<&str>
The network performance.
sourcepub fn maximum_network_interfaces(&self) -> Option<i32>
pub fn maximum_network_interfaces(&self) -> Option<i32>
The maximum number of network interfaces for the instance type.
sourcepub fn maximum_network_cards(&self) -> Option<i32>
pub fn maximum_network_cards(&self) -> Option<i32>
The maximum number of physical network cards that can be allocated to the instance.
sourcepub fn default_network_card_index(&self) -> Option<i32>
pub fn default_network_card_index(&self) -> Option<i32>
The index of the default network card, starting at 0.
sourcepub fn network_cards(&self) -> Option<&[NetworkCardInfo]>
pub fn network_cards(&self) -> Option<&[NetworkCardInfo]>
Describes the network cards for the instance type.
sourcepub fn ipv4_addresses_per_interface(&self) -> Option<i32>
pub fn ipv4_addresses_per_interface(&self) -> Option<i32>
The maximum number of IPv4 addresses per network interface.
sourcepub fn ipv6_addresses_per_interface(&self) -> Option<i32>
pub fn ipv6_addresses_per_interface(&self) -> Option<i32>
The maximum number of IPv6 addresses per network interface.
sourcepub fn ipv6_supported(&self) -> Option<bool>
pub fn ipv6_supported(&self) -> Option<bool>
Indicates whether IPv6 is supported.
sourcepub fn ena_support(&self) -> Option<&EnaSupport>
pub fn ena_support(&self) -> Option<&EnaSupport>
Indicates whether Elastic Network Adapter (ENA) is supported.
sourcepub fn efa_supported(&self) -> Option<bool>
pub fn efa_supported(&self) -> Option<bool>
Indicates whether Elastic Fabric Adapter (EFA) is supported.
sourcepub fn efa_info(&self) -> Option<&EfaInfo>
pub fn efa_info(&self) -> Option<&EfaInfo>
Describes the Elastic Fabric Adapters for the instance type.
sourcepub fn encryption_in_transit_supported(&self) -> Option<bool>
pub fn encryption_in_transit_supported(&self) -> Option<bool>
Indicates whether the instance type automatically encrypts in-transit traffic between instances.
source§impl NetworkInfo
impl NetworkInfo
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkInfo
.
Examples found in repository?
59881 59882 59883 59884 59885 59886 59887 59888 59889 59890 59891 59892 59893 59894 59895 59896 59897 59898 59899 59900 59901 59902 59903 59904 59905 59906 59907 59908 59909 59910 59911 59912 59913 59914 59915 59916 59917 59918 59919 59920 59921 59922 59923 59924 59925 59926 59927 59928 59929 59930 59931 59932 59933 59934 59935 59936 59937 59938 59939 59940 59941 59942 59943 59944 59945 59946 59947 59948 59949 59950 59951 59952 59953 59954 59955 59956 59957 59958 59959 59960 59961 59962 59963 59964 59965 59966 59967 59968 59969 59970 59971 59972 59973 59974 59975 59976 59977 59978 59979 59980 59981 59982 59983 59984 59985 59986 59987 59988 59989 59990 59991 59992 59993 59994 59995 59996 59997 59998 59999 60000 60001 60002 60003 60004 60005 60006 60007 60008 60009 60010 60011 60012 60013 60014 60015 60016 60017 60018 60019 60020 60021 60022 60023 60024 60025 60026 60027 60028 60029 60030 60031 60032 60033 60034 60035 60036 60037 60038 60039 60040 60041 60042 60043 60044 60045 60046 60047 60048 60049 60050 60051 60052 60053 60054 60055 60056 60057 60058 60059
pub fn deser_structure_crate_model_network_info(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::NetworkInfo, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::NetworkInfo::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("networkPerformance") /* NetworkPerformance com.amazonaws.ec2#NetworkInfo$NetworkPerformance */ => {
let var_2918 =
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_network_performance(var_2918);
}
,
s if s.matches("maximumNetworkInterfaces") /* MaximumNetworkInterfaces com.amazonaws.ec2#NetworkInfo$MaximumNetworkInterfaces */ => {
let var_2919 =
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#MaxNetworkInterfaces`)"))
}
?
)
;
builder = builder.set_maximum_network_interfaces(var_2919);
}
,
s if s.matches("maximumNetworkCards") /* MaximumNetworkCards com.amazonaws.ec2#NetworkInfo$MaximumNetworkCards */ => {
let var_2920 =
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#MaximumNetworkCards`)"))
}
?
)
;
builder = builder.set_maximum_network_cards(var_2920);
}
,
s if s.matches("defaultNetworkCardIndex") /* DefaultNetworkCardIndex com.amazonaws.ec2#NetworkInfo$DefaultNetworkCardIndex */ => {
let var_2921 =
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#DefaultNetworkCardIndex`)"))
}
?
)
;
builder = builder.set_default_network_card_index(var_2921);
}
,
s if s.matches("networkCards") /* NetworkCards com.amazonaws.ec2#NetworkInfo$NetworkCards */ => {
let var_2922 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_network_card_info_list(&mut tag)
?
)
;
builder = builder.set_network_cards(var_2922);
}
,
s if s.matches("ipv4AddressesPerInterface") /* Ipv4AddressesPerInterface com.amazonaws.ec2#NetworkInfo$Ipv4AddressesPerInterface */ => {
let var_2923 =
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#MaxIpv4AddrPerInterface`)"))
}
?
)
;
builder = builder.set_ipv4_addresses_per_interface(var_2923);
}
,
s if s.matches("ipv6AddressesPerInterface") /* Ipv6AddressesPerInterface com.amazonaws.ec2#NetworkInfo$Ipv6AddressesPerInterface */ => {
let var_2924 =
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#MaxIpv6AddrPerInterface`)"))
}
?
)
;
builder = builder.set_ipv6_addresses_per_interface(var_2924);
}
,
s if s.matches("ipv6Supported") /* Ipv6Supported com.amazonaws.ec2#NetworkInfo$Ipv6Supported */ => {
let var_2925 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#Ipv6Flag`)"))
}
?
)
;
builder = builder.set_ipv6_supported(var_2925);
}
,
s if s.matches("enaSupport") /* EnaSupport com.amazonaws.ec2#NetworkInfo$EnaSupport */ => {
let var_2926 =
Some(
Result::<crate::model::EnaSupport, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::EnaSupport::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_ena_support(var_2926);
}
,
s if s.matches("efaSupported") /* EfaSupported com.amazonaws.ec2#NetworkInfo$EfaSupported */ => {
let var_2927 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#EfaSupportedFlag`)"))
}
?
)
;
builder = builder.set_efa_supported(var_2927);
}
,
s if s.matches("efaInfo") /* EfaInfo com.amazonaws.ec2#NetworkInfo$EfaInfo */ => {
let var_2928 =
Some(
crate::xml_deser::deser_structure_crate_model_efa_info(&mut tag)
?
)
;
builder = builder.set_efa_info(var_2928);
}
,
s if s.matches("encryptionInTransitSupported") /* EncryptionInTransitSupported com.amazonaws.ec2#NetworkInfo$EncryptionInTransitSupported */ => {
let var_2929 =
Some(
{
<bool 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 (boolean: `com.amazonaws.ec2#EncryptionInTransitSupported`)"))
}
?
)
;
builder = builder.set_encryption_in_transit_supported(var_2929);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for NetworkInfo
impl Clone for NetworkInfo
source§fn clone(&self) -> NetworkInfo
fn clone(&self) -> NetworkInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more