#[non_exhaustive]pub struct SourceIpConditionConfig {
pub values: Option<Vec<String>>,
}
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.
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.values: Option<Vec<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
.
Implementations§
source§impl SourceIpConditionConfig
impl SourceIpConditionConfig
sourcepub fn values(&self) -> &[String]
pub fn values(&self) -> &[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
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .values.is_none()
.
source§impl SourceIpConditionConfig
impl SourceIpConditionConfig
sourcepub fn builder() -> SourceIpConditionConfigBuilder
pub fn builder() -> SourceIpConditionConfigBuilder
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SourceIpConditionConfig
impl Debug for SourceIpConditionConfig
source§impl PartialEq for SourceIpConditionConfig
impl PartialEq for SourceIpConditionConfig
source§fn eq(&self, other: &SourceIpConditionConfig) -> bool
fn eq(&self, other: &SourceIpConditionConfig) -> bool
self
and other
values to be equal, and is used
by ==
.