public static final class CfnWebACL.GeoMatchStatementProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnWebACL.GeoMatchStatementProperty
CfnWebACL.GeoMatchStatementProperty
CfnWebACL.GeoMatchStatementProperty.Builder, CfnWebACL.GeoMatchStatementProperty.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.util.List<java.lang.String> |
getCountryCodes()
An array of two-character country codes that you want to match against, for example, `[ "US", "CN" ]` , from the alpha-2 country ISO codes of the ISO 3166 international standard.
|
java.lang.Object |
getForwardedIpConfig()
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.util.List<java.lang.String> getCountryCodes()
CfnWebACL.GeoMatchStatementProperty
When you use a geo match statement just for the region and country labels that it adds to requests, you still have to supply a country code for the rule to evaluate. In this case, you configure the rule to only count matching requests, but it will still generate logging and count metrics for any matches. You can reduce the logging and metrics that the rule produces by specifying a country that's unlikely to be a source of traffic to your site.
getCountryCodes
in interface CfnWebACL.GeoMatchStatementProperty
public final java.lang.Object getForwardedIpConfig()
CfnWebACL.GeoMatchStatementProperty
Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
getForwardedIpConfig
in interface CfnWebACL.GeoMatchStatementProperty
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()