@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 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 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 WAF to respond to requests that match the settings in a rule.
Valid settings include the following:
ALLOW - WAF allows requests
BLOCK - WAF blocks requests
COUNT - WAF increments a counter of the requests that match all of the conditions in the rule. 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 web ACL.
Valid settings include the following:
ALLOW - WAF allows requests
BLOCK - WAF blocks requests
COUNT - WAF increments a counter of the requests that match all of the conditions in the
rule. 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 web ACL.
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 © 2023. All rights reserved.