public static interface CfnListenerRule.SourceIpConfigProperty
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.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.elasticloadbalancingv2.*; SourceIpConfigProperty sourceIpConfigProperty = SourceIpConfigProperty.builder() .values(List.of("values")) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnListenerRule.SourceIpConfigProperty.Builder
A builder for
CfnListenerRule.SourceIpConfigProperty |
static class |
CfnListenerRule.SourceIpConfigProperty.Jsii$Proxy
An implementation for
CfnListenerRule.SourceIpConfigProperty |
Modifier and Type | Method and Description |
---|---|
static CfnListenerRule.SourceIpConfigProperty.Builder |
builder() |
default java.util.List<java.lang.String> |
getValues()
The source IP addresses, in CIDR format.
|
default java.util.List<java.lang.String> getValues()
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.
static CfnListenerRule.SourceIpConfigProperty.Builder builder()