Struct aws_sdk_ec2::types::NatGatewayAddress
source · #[non_exhaustive]pub struct NatGatewayAddress {
pub allocation_id: Option<String>,
pub network_interface_id: Option<String>,
pub private_ip: Option<String>,
pub public_ip: Option<String>,
pub association_id: Option<String>,
pub is_primary: Option<bool>,
pub failure_message: Option<String>,
pub status: Option<NatGatewayAddressStatus>,
}
Expand description
Describes the IP addresses and network interface associated with a NAT gateway.
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.allocation_id: Option<String>
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.
network_interface_id: Option<String>
The ID of the network interface associated with the NAT gateway.
private_ip: Option<String>
The private IP address associated with the NAT gateway.
public_ip: Option<String>
[Public NAT gateway only] The Elastic IP address associated with the NAT gateway.
association_id: Option<String>
[Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.
is_primary: Option<bool>
Defines if the IP address is the primary address.
failure_message: Option<String>
The address failure message.
status: Option<NatGatewayAddressStatus>
The address status.
Implementations§
source§impl NatGatewayAddress
impl NatGatewayAddress
sourcepub fn allocation_id(&self) -> Option<&str>
pub fn allocation_id(&self) -> Option<&str>
[Public NAT gateway only] The allocation ID of the Elastic IP address that's associated with the NAT gateway.
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface associated with the NAT gateway.
sourcepub fn private_ip(&self) -> Option<&str>
pub fn private_ip(&self) -> Option<&str>
The private IP address associated with the NAT gateway.
sourcepub fn public_ip(&self) -> Option<&str>
pub fn public_ip(&self) -> Option<&str>
[Public NAT gateway only] The Elastic IP address associated with the NAT gateway.
sourcepub fn association_id(&self) -> Option<&str>
pub fn association_id(&self) -> Option<&str>
[Public NAT gateway only] The association ID of the Elastic IP address that's associated with the NAT gateway.
sourcepub fn is_primary(&self) -> Option<bool>
pub fn is_primary(&self) -> Option<bool>
Defines if the IP address is the primary address.
sourcepub fn failure_message(&self) -> Option<&str>
pub fn failure_message(&self) -> Option<&str>
The address failure message.
sourcepub fn status(&self) -> Option<&NatGatewayAddressStatus>
pub fn status(&self) -> Option<&NatGatewayAddressStatus>
The address status.
source§impl NatGatewayAddress
impl NatGatewayAddress
sourcepub fn builder() -> NatGatewayAddressBuilder
pub fn builder() -> NatGatewayAddressBuilder
Creates a new builder-style object to manufacture NatGatewayAddress
.
Trait Implementations§
source§impl Clone for NatGatewayAddress
impl Clone for NatGatewayAddress
source§fn clone(&self) -> NatGatewayAddress
fn clone(&self) -> NatGatewayAddress
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NatGatewayAddress
impl Debug for NatGatewayAddress
source§impl PartialEq<NatGatewayAddress> for NatGatewayAddress
impl PartialEq<NatGatewayAddress> for NatGatewayAddress
source§fn eq(&self, other: &NatGatewayAddress) -> bool
fn eq(&self, other: &NatGatewayAddress) -> bool
self
and other
values to be equal, and is used
by ==
.