#[non_exhaustive]pub struct SourceIpConditionConfig { /* private fields */ }
Expand description
Information about a source IP condition.
You can use this condition to route based on the IP address of the source that connects to the load balancer. If a client is behind a proxy, this is the IP address of the proxy not the IP address of the client.
Implementations
sourceimpl SourceIpConditionConfig
impl SourceIpConditionConfig
sourcepub fn values(&self) -> Option<&[String]>
pub fn values(&self) -> Option<&[String]>
One or more source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses. Wildcards are not supported.
If you specify multiple addresses, the condition is satisfied if the source IP address of the request matches one of the CIDR blocks. This condition is not satisfied by the addresses in the X-Forwarded-For header. To search for addresses in the X-Forwarded-For header, use HttpHeaderConditionConfig
.
sourceimpl SourceIpConditionConfig
impl SourceIpConditionConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SourceIpConditionConfig
.
Trait Implementations
sourceimpl Clone for SourceIpConditionConfig
impl Clone for SourceIpConditionConfig
sourcefn clone(&self) -> SourceIpConditionConfig
fn clone(&self) -> SourceIpConditionConfig
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 moresourceimpl Debug for SourceIpConditionConfig
impl Debug for SourceIpConditionConfig
sourceimpl PartialEq<SourceIpConditionConfig> for SourceIpConditionConfig
impl PartialEq<SourceIpConditionConfig> for SourceIpConditionConfig
sourcefn eq(&self, other: &SourceIpConditionConfig) -> bool
fn eq(&self, other: &SourceIpConditionConfig) -> bool
impl StructuralPartialEq for SourceIpConditionConfig
Auto Trait Implementations
impl RefUnwindSafe for SourceIpConditionConfig
impl Send for SourceIpConditionConfig
impl Sync for SourceIpConditionConfig
impl Unpin for SourceIpConditionConfig
impl UnwindSafe for SourceIpConditionConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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