#[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§
source§impl SourceIpConditionConfig
impl SourceIpConditionConfig
sourcepub fn values(&self) -> Option<&[String]>
pub fn values(&self) -> Option<&[String]>
The 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
.
source§impl SourceIpConditionConfig
impl SourceIpConditionConfig
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SourceIpConditionConfig
.
Trait Implementations§
source§impl Clone for SourceIpConditionConfig
impl Clone for SourceIpConditionConfig
source§fn clone(&self) -> SourceIpConditionConfig
fn clone(&self) -> SourceIpConditionConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SourceIpConditionConfig
impl Debug for SourceIpConditionConfig
source§impl PartialEq<SourceIpConditionConfig> for SourceIpConditionConfig
impl PartialEq<SourceIpConditionConfig> for SourceIpConditionConfig
source§fn eq(&self, other: &SourceIpConditionConfig) -> bool
fn eq(&self, other: &SourceIpConditionConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.