Struct aws_sdk_globalaccelerator::model::PortMapping
source · [−]#[non_exhaustive]pub struct PortMapping {
pub accelerator_port: Option<i32>,
pub endpoint_group_arn: Option<String>,
pub endpoint_id: Option<String>,
pub destination_socket_address: Option<SocketAddress>,
pub protocols: Option<Vec<CustomRoutingProtocol>>,
pub destination_traffic_state: Option<CustomRoutingDestinationTrafficState>,
}Expand description
Returns the ports and associated IP addresses and ports of Amazon EC2 instances in your virtual private cloud (VPC) subnets. Custom routing is a port mapping protocol in AWS Global Accelerator that statically associates port ranges with VPC subnets, which allows Global Accelerator to route to specific instances and ports within one or more subnets.
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_port: Option<i32>The accelerator port.
endpoint_group_arn: Option<String>The Amazon Resource Name (ARN) of the endpoint group.
endpoint_id: Option<String>The IP address of the VPC subnet (the subnet ID).
destination_socket_address: Option<SocketAddress>The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.
protocols: Option<Vec<CustomRoutingProtocol>>The protocols supported by the endpoint group.
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 PortMapping
impl PortMapping
sourcepub fn accelerator_port(&self) -> Option<i32>
pub fn accelerator_port(&self) -> Option<i32>
The accelerator port.
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 IP address of the VPC subnet (the subnet ID).
sourcepub fn destination_socket_address(&self) -> Option<&SocketAddress>
pub fn destination_socket_address(&self) -> Option<&SocketAddress>
The EC2 instance IP address and port number in the virtual private cloud (VPC) subnet.
sourcepub fn protocols(&self) -> Option<&[CustomRoutingProtocol]>
pub fn protocols(&self) -> Option<&[CustomRoutingProtocol]>
The protocols supported by the endpoint group.
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 PortMapping
impl PortMapping
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PortMapping.
Trait Implementations
sourceimpl Clone for PortMapping
impl Clone for PortMapping
sourcefn clone(&self) -> PortMapping
fn clone(&self) -> PortMapping
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 PortMapping
impl Debug for PortMapping
sourceimpl PartialEq<PortMapping> for PortMapping
impl PartialEq<PortMapping> for PortMapping
sourcefn eq(&self, other: &PortMapping) -> bool
fn eq(&self, other: &PortMapping) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PortMapping) -> bool
fn ne(&self, other: &PortMapping) -> bool
This method tests for !=.
impl StructuralPartialEq for PortMapping
Auto Trait Implementations
impl RefUnwindSafe for PortMapping
impl Send for PortMapping
impl Sync for PortMapping
impl Unpin for PortMapping
impl UnwindSafe for PortMapping
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