#[non_exhaustive]pub struct DestinationPortMapping {
pub accelerator_arn: Option<String>,
pub accelerator_socket_addresses: Option<Vec<SocketAddress>>,
pub endpoint_group_arn: Option<String>,
pub endpoint_id: Option<String>,
pub endpoint_group_region: Option<String>,
pub destination_socket_address: Option<SocketAddress>,
pub ip_address_type: Option<IpAddressType>,
pub destination_traffic_state: Option<CustomRoutingDestinationTrafficState>,
}
Expand description
The port mappings for a specified endpoint IP address (destination).
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.accelerator_arn: Option<String>
The Amazon Resource Name (ARN) of the custom routing accelerator that you have port mappings for.
accelerator_socket_addresses: Option<Vec<SocketAddress>>
The IP address/port combinations (sockets) that map to a given destination socket address.
endpoint_group_arn: Option<String>
The Amazon Resource Name (ARN) of the endpoint group.
endpoint_id: Option<String>
The ID for the virtual private cloud (VPC) subnet.
endpoint_group_region: Option<String>
The AWS Region for the endpoint group.
destination_socket_address: Option<SocketAddress>
The endpoint IP address/port combination for traffic received on the accelerator socket address.
ip_address_type: Option<IpAddressType>
The IP address type, which must be IPv4.
destination_traffic_state: Option<CustomRoutingDestinationTrafficState>
Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.
Implementations
sourceimpl DestinationPortMapping
impl DestinationPortMapping
sourcepub fn accelerator_arn(&self) -> Option<&str>
pub fn accelerator_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the custom routing accelerator that you have port mappings for.
sourcepub fn accelerator_socket_addresses(&self) -> Option<&[SocketAddress]>
pub fn accelerator_socket_addresses(&self) -> Option<&[SocketAddress]>
The IP address/port combinations (sockets) that map to a given destination socket address.
sourcepub fn endpoint_group_arn(&self) -> Option<&str>
pub fn endpoint_group_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the endpoint group.
sourcepub fn endpoint_id(&self) -> Option<&str>
pub fn endpoint_id(&self) -> Option<&str>
The ID for the virtual private cloud (VPC) subnet.
sourcepub fn endpoint_group_region(&self) -> Option<&str>
pub fn endpoint_group_region(&self) -> Option<&str>
The AWS Region for the endpoint group.
sourcepub fn destination_socket_address(&self) -> Option<&SocketAddress>
pub fn destination_socket_address(&self) -> Option<&SocketAddress>
The endpoint IP address/port combination for traffic received on the accelerator socket address.
sourcepub fn ip_address_type(&self) -> Option<&IpAddressType>
pub fn ip_address_type(&self) -> Option<&IpAddressType>
The IP address type, which must be IPv4.
sourcepub fn destination_traffic_state(
&self
) -> Option<&CustomRoutingDestinationTrafficState>
pub fn destination_traffic_state(
&self
) -> Option<&CustomRoutingDestinationTrafficState>
Indicates whether or not a port mapping destination can receive traffic. The value is either ALLOW, if traffic is allowed to the destination, or DENY, if traffic is not allowed to the destination.
sourceimpl DestinationPortMapping
impl DestinationPortMapping
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DestinationPortMapping
Trait Implementations
sourceimpl Clone for DestinationPortMapping
impl Clone for DestinationPortMapping
sourcefn clone(&self) -> DestinationPortMapping
fn clone(&self) -> DestinationPortMapping
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 DestinationPortMapping
impl Debug for DestinationPortMapping
sourceimpl PartialEq<DestinationPortMapping> for DestinationPortMapping
impl PartialEq<DestinationPortMapping> for DestinationPortMapping
sourcefn eq(&self, other: &DestinationPortMapping) -> bool
fn eq(&self, other: &DestinationPortMapping) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DestinationPortMapping) -> bool
fn ne(&self, other: &DestinationPortMapping) -> bool
This method tests for !=
.
impl StructuralPartialEq for DestinationPortMapping
Auto Trait Implementations
impl RefUnwindSafe for DestinationPortMapping
impl Send for DestinationPortMapping
impl Sync for DestinationPortMapping
impl Unpin for DestinationPortMapping
impl UnwindSafe for DestinationPortMapping
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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