Struct aws_sdk_ec2::types::Address
source · #[non_exhaustive]pub struct Address {Show 14 fields
pub instance_id: Option<String>,
pub public_ip: Option<String>,
pub allocation_id: Option<String>,
pub association_id: Option<String>,
pub domain: Option<DomainType>,
pub network_interface_id: Option<String>,
pub network_interface_owner_id: Option<String>,
pub private_ip_address: Option<String>,
pub tags: Option<Vec<Tag>>,
pub public_ipv4_pool: Option<String>,
pub network_border_group: Option<String>,
pub customer_owned_ip: Option<String>,
pub customer_owned_ipv4_pool: Option<String>,
pub carrier_ip: Option<String>,
}
Expand description
Describes an Elastic IP address, or a carrier IP address.
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.instance_id: Option<String>
The ID of the instance that the address is associated with (if any).
public_ip: Option<String>
The Elastic IP address.
allocation_id: Option<String>
The ID representing the allocation of the address.
association_id: Option<String>
The ID representing the association of the address with an instance.
domain: Option<DomainType>
The network (vpc
).
network_interface_id: Option<String>
The ID of the network interface.
network_interface_owner_id: Option<String>
The ID of the Amazon Web Services account that owns the network interface.
private_ip_address: Option<String>
The private IP address associated with the Elastic IP address.
Any tags assigned to the Elastic IP address.
public_ipv4_pool: Option<String>
The ID of an address pool.
network_border_group: Option<String>
The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses.
customer_owned_ip: Option<String>
The customer-owned IP address.
customer_owned_ipv4_pool: Option<String>
The ID of the customer-owned address pool.
carrier_ip: Option<String>
The carrier IP address associated. This option is only available for network interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 instance).
Implementations§
source§impl Address
impl Address
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The ID of the instance that the address is associated with (if any).
sourcepub fn allocation_id(&self) -> Option<&str>
pub fn allocation_id(&self) -> Option<&str>
The ID representing the allocation of the address.
sourcepub fn association_id(&self) -> Option<&str>
pub fn association_id(&self) -> Option<&str>
The ID representing the association of the address with an instance.
sourcepub fn domain(&self) -> Option<&DomainType>
pub fn domain(&self) -> Option<&DomainType>
The network (vpc
).
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface.
sourcepub fn network_interface_owner_id(&self) -> Option<&str>
pub fn network_interface_owner_id(&self) -> Option<&str>
The ID of the Amazon Web Services account that owns the network interface.
sourcepub fn private_ip_address(&self) -> Option<&str>
pub fn private_ip_address(&self) -> Option<&str>
The private IP address associated with the Elastic IP address.
Any tags assigned to the Elastic IP address.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
sourcepub fn public_ipv4_pool(&self) -> Option<&str>
pub fn public_ipv4_pool(&self) -> Option<&str>
The ID of an address pool.
sourcepub fn network_border_group(&self) -> Option<&str>
pub fn network_border_group(&self) -> Option<&str>
The name of the unique set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses.
sourcepub fn customer_owned_ip(&self) -> Option<&str>
pub fn customer_owned_ip(&self) -> Option<&str>
The customer-owned IP address.
sourcepub fn customer_owned_ipv4_pool(&self) -> Option<&str>
pub fn customer_owned_ipv4_pool(&self) -> Option<&str>
The ID of the customer-owned address pool.
sourcepub fn carrier_ip(&self) -> Option<&str>
pub fn carrier_ip(&self) -> Option<&str>
The carrier IP address associated. This option is only available for network interfaces which reside in a subnet in a Wavelength Zone (for example an EC2 instance).
Trait Implementations§
source§impl PartialEq for Address
impl PartialEq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more