Struct aws_sdk_ec2::model::NetworkInterface
source · [−]#[non_exhaustive]pub struct NetworkInterface { /* private fields */ }
Expand description
Describes a network interface.
Implementations
sourceimpl 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.
sourceimpl NetworkInterface
impl NetworkInterface
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture NetworkInterface
.
Trait Implementations
sourceimpl Clone for NetworkInterface
impl Clone for NetworkInterface
sourcefn clone(&self) -> NetworkInterface
fn clone(&self) -> NetworkInterface
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NetworkInterface
impl Debug for NetworkInterface
sourceimpl PartialEq<NetworkInterface> for NetworkInterface
impl PartialEq<NetworkInterface> for NetworkInterface
sourcefn eq(&self, other: &NetworkInterface) -> bool
fn eq(&self, other: &NetworkInterface) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for NetworkInterface
Auto Trait Implementations
impl RefUnwindSafe for NetworkInterface
impl Send for NetworkInterface
impl Sync for NetworkInterface
impl Unpin for NetworkInterface
impl UnwindSafe for NetworkInterface
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more