Struct aws_sdk_ec2::types::NetworkInterface
source · #[non_exhaustive]pub struct NetworkInterface {Show 26 fields
pub association: Option<NetworkInterfaceAssociation>,
pub attachment: Option<NetworkInterfaceAttachment>,
pub availability_zone: Option<String>,
pub description: Option<String>,
pub groups: Option<Vec<GroupIdentifier>>,
pub interface_type: Option<NetworkInterfaceType>,
pub ipv6_addresses: Option<Vec<NetworkInterfaceIpv6Address>>,
pub mac_address: Option<String>,
pub network_interface_id: Option<String>,
pub outpost_arn: Option<String>,
pub owner_id: Option<String>,
pub private_dns_name: Option<String>,
pub private_ip_address: Option<String>,
pub private_ip_addresses: Option<Vec<NetworkInterfacePrivateIpAddress>>,
pub ipv4_prefixes: Option<Vec<Ipv4PrefixSpecification>>,
pub ipv6_prefixes: Option<Vec<Ipv6PrefixSpecification>>,
pub requester_id: Option<String>,
pub requester_managed: Option<bool>,
pub source_dest_check: Option<bool>,
pub status: Option<NetworkInterfaceStatus>,
pub subnet_id: Option<String>,
pub tag_set: Option<Vec<Tag>>,
pub vpc_id: Option<String>,
pub deny_all_igw_traffic: Option<bool>,
pub ipv6_native: Option<bool>,
pub ipv6_address: Option<String>,
}
Expand description
Describes a network interface.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.association: Option<NetworkInterfaceAssociation>
The association information for an Elastic IP address (IPv4) associated with the network interface.
attachment: Option<NetworkInterfaceAttachment>
The network interface attachment.
availability_zone: Option<String>
The Availability Zone.
description: Option<String>
A description.
groups: Option<Vec<GroupIdentifier>>
Any security groups for the network interface.
interface_type: Option<NetworkInterfaceType>
The type of network interface.
ipv6_addresses: Option<Vec<NetworkInterfaceIpv6Address>>
The IPv6 addresses associated with the network interface.
mac_address: Option<String>
The MAC address.
network_interface_id: Option<String>
The ID of the network interface.
outpost_arn: Option<String>
The Amazon Resource Name (ARN) of the Outpost.
owner_id: Option<String>
The Amazon Web Services account ID of the owner of the network interface.
private_dns_name: Option<String>
The private DNS name.
private_ip_address: Option<String>
The IPv4 address of the network interface within the subnet.
private_ip_addresses: Option<Vec<NetworkInterfacePrivateIpAddress>>
The private IPv4 addresses associated with the network interface.
ipv4_prefixes: Option<Vec<Ipv4PrefixSpecification>>
The IPv4 prefixes that are assigned to the network interface.
ipv6_prefixes: Option<Vec<Ipv6PrefixSpecification>>
The IPv6 prefixes that are assigned to the network interface.
requester_id: Option<String>
The alias or Amazon Web Services account ID of the principal or service that created the network interface.
requester_managed: Option<bool>
Indicates whether the network interface is being managed by Amazon Web Services.
source_dest_check: Option<bool>
Indicates whether source/destination checking is enabled.
status: Option<NetworkInterfaceStatus>
The status of the network interface.
subnet_id: Option<String>
The ID of the subnet.
tag_set: Option<Vec<Tag>>
Any tags assigned to the network interface.
vpc_id: Option<String>
The ID of the VPC.
deny_all_igw_traffic: Option<bool>
Indicates whether a network interface with an IPv6 address is unreachable from the public internet. If the value is true
, inbound traffic from the internet is dropped and you cannot assign an elastic IP address to the network interface. The network interface is reachable from peered VPCs and resources connected through a transit gateway, including on-premises networks.
ipv6_native: Option<bool>
Indicates whether this is an IPv6 only network interface.
ipv6_address: Option<String>
The IPv6 globally unique address associated with the network interface.
Implementations§
source§impl NetworkInterface
impl NetworkInterface
sourcepub fn association(&self) -> Option<&NetworkInterfaceAssociation>
pub fn association(&self) -> Option<&NetworkInterfaceAssociation>
The association information for an Elastic IP address (IPv4) associated with the network interface.
sourcepub fn attachment(&self) -> Option<&NetworkInterfaceAttachment>
pub fn attachment(&self) -> Option<&NetworkInterfaceAttachment>
The network interface attachment.
sourcepub fn availability_zone(&self) -> Option<&str>
pub fn availability_zone(&self) -> Option<&str>
The Availability Zone.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description.
sourcepub fn groups(&self) -> Option<&[GroupIdentifier]>
pub fn groups(&self) -> Option<&[GroupIdentifier]>
Any security groups for the network interface.
sourcepub fn interface_type(&self) -> Option<&NetworkInterfaceType>
pub fn interface_type(&self) -> Option<&NetworkInterfaceType>
The type of network interface.
sourcepub fn ipv6_addresses(&self) -> Option<&[NetworkInterfaceIpv6Address]>
pub fn ipv6_addresses(&self) -> Option<&[NetworkInterfaceIpv6Address]>
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 outpost_arn(&self) -> Option<&str>
pub fn outpost_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Outpost.
sourcepub fn owner_id(&self) -> Option<&str>
pub fn owner_id(&self) -> Option<&str>
The Amazon Web Services account ID of the owner of 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<&[NetworkInterfacePrivateIpAddress]>
pub fn private_ip_addresses( &self ) -> Option<&[NetworkInterfacePrivateIpAddress]>
The private IPv4 addresses associated with the network interface.
sourcepub fn ipv4_prefixes(&self) -> Option<&[Ipv4PrefixSpecification]>
pub fn ipv4_prefixes(&self) -> Option<&[Ipv4PrefixSpecification]>
The IPv4 prefixes that are assigned to the network interface.
sourcepub fn ipv6_prefixes(&self) -> Option<&[Ipv6PrefixSpecification]>
pub fn ipv6_prefixes(&self) -> Option<&[Ipv6PrefixSpecification]>
The IPv6 prefixes that are assigned to the network interface.
sourcepub fn requester_id(&self) -> Option<&str>
pub fn requester_id(&self) -> Option<&str>
The alias or Amazon Web Services account ID of the principal or service that created the network interface.
sourcepub fn requester_managed(&self) -> Option<bool>
pub fn requester_managed(&self) -> Option<bool>
Indicates whether the network interface is being managed by Amazon Web Services.
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 deny_all_igw_traffic(&self) -> Option<bool>
pub fn deny_all_igw_traffic(&self) -> Option<bool>
Indicates whether a network interface with an IPv6 address is unreachable from the public internet. If the value is true
, inbound traffic from the internet is dropped and you cannot assign an elastic IP address to the network interface. The network interface is reachable from peered VPCs and resources connected through a transit gateway, including on-premises networks.
sourcepub fn ipv6_native(&self) -> Option<bool>
pub fn ipv6_native(&self) -> Option<bool>
Indicates whether this is an IPv6 only network interface.
sourcepub fn ipv6_address(&self) -> Option<&str>
pub fn ipv6_address(&self) -> Option<&str>
The IPv6 globally unique address associated with the network interface.
source§impl NetworkInterface
impl NetworkInterface
sourcepub fn builder() -> NetworkInterfaceBuilder
pub fn builder() -> NetworkInterfaceBuilder
Creates a new builder-style object to manufacture NetworkInterface
.
Trait Implementations§
source§impl Clone for NetworkInterface
impl Clone for NetworkInterface
source§fn clone(&self) -> NetworkInterface
fn clone(&self) -> NetworkInterface
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NetworkInterface
impl Debug for NetworkInterface
source§impl PartialEq<NetworkInterface> for NetworkInterface
impl PartialEq<NetworkInterface> for NetworkInterface
source§fn eq(&self, other: &NetworkInterface) -> bool
fn eq(&self, other: &NetworkInterface) -> bool
self
and other
values to be equal, and is used
by ==
.