@Stability(value=Stable)
public static interface CfnRuleGroup.GeoMatchStatementProperty
extends software.amazon.jsii.JsiiSerializable
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.wafv2.*;
GeoMatchStatementProperty geoMatchStatementProperty = GeoMatchStatementProperty.builder()
.countryCodes(List.of("countryCodes"))
.forwardedIpConfig(ForwardedIPConfigurationProperty.builder()
.fallbackBehavior("fallbackBehavior")
.headerName("headerName")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnRuleGroup.GeoMatchStatementProperty.Builder
A builder for
CfnRuleGroup.GeoMatchStatementProperty |
static class |
CfnRuleGroup.GeoMatchStatementProperty.Jsii$Proxy
An implementation for
CfnRuleGroup.GeoMatchStatementProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnRuleGroup.GeoMatchStatementProperty.Builder |
builder() |
default List<String> |
getCountryCodes()
An array of two-character country codes, for example, `[ "US", "CN" ]` , from the alpha-2 country ISO codes of the ISO 3166 international standard.
|
default 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.
|
@Stability(value=Stable) @Nullable default List<String> getCountryCodes()
@Stability(value=Stable) @Nullable default Object getForwardedIpConfig()
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.
@Stability(value=Stable) static CfnRuleGroup.GeoMatchStatementProperty.Builder builder()
Copyright © 2022. All rights reserved.