Struct aws_sdk_ec2::model::InstanceNetworkInterface
source · #[non_exhaustive]pub struct InstanceNetworkInterface { /* private fields */ }
Expand description
Describes a network interface.
Implementations§
source§impl InstanceNetworkInterface
impl InstanceNetworkInterface
sourcepub fn association(&self) -> Option<&InstanceNetworkInterfaceAssociation>
pub fn association(&self) -> Option<&InstanceNetworkInterfaceAssociation>
The association information for an Elastic IPv4 associated with the network interface.
sourcepub fn attachment(&self) -> Option<&InstanceNetworkInterfaceAttachment>
pub fn attachment(&self) -> Option<&InstanceNetworkInterfaceAttachment>
The network interface attachment.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description.
sourcepub fn groups(&self) -> Option<&[GroupIdentifier]>
pub fn groups(&self) -> Option<&[GroupIdentifier]>
The security groups.
sourcepub fn ipv6_addresses(&self) -> Option<&[InstanceIpv6Address]>
pub fn ipv6_addresses(&self) -> Option<&[InstanceIpv6Address]>
The IPv6 addresses associated with the network interface.
sourcepub fn mac_address(&self) -> Option<&str>
pub fn mac_address(&self) -> Option<&str>
The MAC address.
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that created the network interface.
sourcepub fn private_dns_name(&self) -> Option<&str>
pub fn private_dns_name(&self) -> Option<&str>
The private DNS name.
sourcepub fn private_ip_address(&self) -> Option<&str>
pub fn private_ip_address(&self) -> Option<&str>
The IPv4 address of the network interface within the subnet.
sourcepub fn private_ip_addresses(&self) -> Option<&[InstancePrivateIpAddress]>
pub fn private_ip_addresses(&self) -> Option<&[InstancePrivateIpAddress]>
The private IPv4 addresses associated with the network interface.
sourcepub fn source_dest_check(&self) -> Option<bool>
pub fn source_dest_check(&self) -> Option<bool>
Indicates whether source/destination checking is enabled.
sourcepub fn status(&self) -> Option<&NetworkInterfaceStatus>
pub fn status(&self) -> Option<&NetworkInterfaceStatus>
The status of the network interface.
sourcepub fn interface_type(&self) -> Option<&str>
pub fn interface_type(&self) -> Option<&str>
The type of network interface.
Valid values: interface
| efa
| trunk
sourcepub fn ipv4_prefixes(&self) -> Option<&[InstanceIpv4Prefix]>
pub fn ipv4_prefixes(&self) -> Option<&[InstanceIpv4Prefix]>
The IPv4 delegated prefixes that are assigned to the network interface.
sourcepub fn ipv6_prefixes(&self) -> Option<&[InstanceIpv6Prefix]>
pub fn ipv6_prefixes(&self) -> Option<&[InstanceIpv6Prefix]>
The IPv6 delegated prefixes that are assigned to the network interface.
source§impl InstanceNetworkInterface
impl InstanceNetworkInterface
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture InstanceNetworkInterface
.
Examples found in repository?
67225 67226 67227 67228 67229 67230 67231 67232 67233 67234 67235 67236 67237 67238 67239 67240 67241 67242 67243 67244 67245 67246 67247 67248 67249 67250 67251 67252 67253 67254 67255 67256 67257 67258 67259 67260 67261 67262 67263 67264 67265 67266 67267 67268 67269 67270 67271 67272 67273 67274 67275 67276 67277 67278 67279 67280 67281 67282 67283 67284 67285 67286 67287 67288 67289 67290 67291 67292 67293 67294 67295 67296 67297 67298 67299 67300 67301 67302 67303 67304 67305 67306 67307 67308 67309 67310 67311 67312 67313 67314 67315 67316 67317 67318 67319 67320 67321 67322 67323 67324 67325 67326 67327 67328 67329 67330 67331 67332 67333 67334 67335 67336 67337 67338 67339 67340 67341 67342 67343 67344 67345 67346 67347 67348 67349 67350 67351 67352 67353 67354 67355 67356 67357 67358 67359 67360 67361 67362 67363 67364 67365 67366 67367 67368 67369 67370 67371 67372 67373 67374 67375 67376 67377 67378 67379 67380 67381 67382 67383 67384 67385 67386 67387 67388 67389 67390 67391 67392 67393 67394 67395 67396 67397 67398 67399 67400 67401 67402 67403 67404 67405 67406 67407 67408 67409 67410 67411 67412 67413 67414 67415 67416 67417 67418 67419 67420 67421 67422 67423 67424 67425 67426 67427 67428 67429 67430 67431 67432 67433 67434 67435 67436 67437 67438 67439 67440 67441 67442 67443 67444 67445 67446 67447 67448 67449 67450 67451 67452
pub fn deser_structure_crate_model_instance_network_interface(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InstanceNetworkInterface, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceNetworkInterface::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("association") /* Association com.amazonaws.ec2#InstanceNetworkInterface$Association */ => {
let var_3307 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_network_interface_association(&mut tag)
?
)
;
builder = builder.set_association(var_3307);
}
,
s if s.matches("attachment") /* Attachment com.amazonaws.ec2#InstanceNetworkInterface$Attachment */ => {
let var_3308 =
Some(
crate::xml_deser::deser_structure_crate_model_instance_network_interface_attachment(&mut tag)
?
)
;
builder = builder.set_attachment(var_3308);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#InstanceNetworkInterface$Description */ => {
let var_3309 =
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_description(var_3309);
}
,
s if s.matches("groupSet") /* Groups com.amazonaws.ec2#InstanceNetworkInterface$Groups */ => {
let var_3310 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_group_identifier_list(&mut tag)
?
)
;
builder = builder.set_groups(var_3310);
}
,
s if s.matches("ipv6AddressesSet") /* Ipv6Addresses com.amazonaws.ec2#InstanceNetworkInterface$Ipv6Addresses */ => {
let var_3311 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_ipv6_address_list(&mut tag)
?
)
;
builder = builder.set_ipv6_addresses(var_3311);
}
,
s if s.matches("macAddress") /* MacAddress com.amazonaws.ec2#InstanceNetworkInterface$MacAddress */ => {
let var_3312 =
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_mac_address(var_3312);
}
,
s if s.matches("networkInterfaceId") /* NetworkInterfaceId com.amazonaws.ec2#InstanceNetworkInterface$NetworkInterfaceId */ => {
let var_3313 =
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_interface_id(var_3313);
}
,
s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#InstanceNetworkInterface$OwnerId */ => {
let var_3314 =
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_3314);
}
,
s if s.matches("privateDnsName") /* PrivateDnsName com.amazonaws.ec2#InstanceNetworkInterface$PrivateDnsName */ => {
let var_3315 =
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_private_dns_name(var_3315);
}
,
s if s.matches("privateIpAddress") /* PrivateIpAddress com.amazonaws.ec2#InstanceNetworkInterface$PrivateIpAddress */ => {
let var_3316 =
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_private_ip_address(var_3316);
}
,
s if s.matches("privateIpAddressesSet") /* PrivateIpAddresses com.amazonaws.ec2#InstanceNetworkInterface$PrivateIpAddresses */ => {
let var_3317 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_private_ip_address_list(&mut tag)
?
)
;
builder = builder.set_private_ip_addresses(var_3317);
}
,
s if s.matches("sourceDestCheck") /* SourceDestCheck com.amazonaws.ec2#InstanceNetworkInterface$SourceDestCheck */ => {
let var_3318 =
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#Boolean`)"))
}
?
)
;
builder = builder.set_source_dest_check(var_3318);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#InstanceNetworkInterface$Status */ => {
let var_3319 =
Some(
Result::<crate::model::NetworkInterfaceStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::NetworkInterfaceStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_3319);
}
,
s if s.matches("subnetId") /* SubnetId com.amazonaws.ec2#InstanceNetworkInterface$SubnetId */ => {
let var_3320 =
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_subnet_id(var_3320);
}
,
s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#InstanceNetworkInterface$VpcId */ => {
let var_3321 =
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_vpc_id(var_3321);
}
,
s if s.matches("interfaceType") /* InterfaceType com.amazonaws.ec2#InstanceNetworkInterface$InterfaceType */ => {
let var_3322 =
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_interface_type(var_3322);
}
,
s if s.matches("ipv4PrefixSet") /* Ipv4Prefixes com.amazonaws.ec2#InstanceNetworkInterface$Ipv4Prefixes */ => {
let var_3323 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_ipv4_prefix_list(&mut tag)
?
)
;
builder = builder.set_ipv4_prefixes(var_3323);
}
,
s if s.matches("ipv6PrefixSet") /* Ipv6Prefixes com.amazonaws.ec2#InstanceNetworkInterface$Ipv6Prefixes */ => {
let var_3324 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_instance_ipv6_prefix_list(&mut tag)
?
)
;
builder = builder.set_ipv6_prefixes(var_3324);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for InstanceNetworkInterface
impl Clone for InstanceNetworkInterface
source§fn clone(&self) -> InstanceNetworkInterface
fn clone(&self) -> InstanceNetworkInterface
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more