@Generated(value="software.amazon.awssdk:codegen") public final class WafAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<WafAction.Builder,WafAction>
Details about the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
| Modifier and Type | Class and Description |
|---|---|
static interface |
WafAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
static WafAction.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends WafAction.Builder> |
serializableBuilderClass() |
WafAction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
type()
Specifies how you want AWS WAF to respond to requests that match the settings in a rule.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String type()
Specifies how you want AWS WAF to respond to requests that match the settings in a rule.
Valid settings include the following:
ALLOW - AWS WAF allows requests
BLOCK - AWS WAF blocks requests
COUNT - AWS WAF increments a counter of the requests that match all of the conditions in the rule.
AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify
COUNT for the default action for a WebACL.
Valid settings include the following:
ALLOW - AWS WAF allows requests
BLOCK - AWS WAF blocks requests
COUNT - AWS WAF increments a counter of the requests that match all of the conditions in the
rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You
can't specify COUNT for the default action for a WebACL.
public WafAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<WafAction.Builder,WafAction>public static WafAction.Builder builder()
public static Class<? extends WafAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.