@Generated(value="software.amazon.awssdk:codegen") public final class RuleAction extends Object implements SdkPojo, Serializable, ToCopyableBuilder<RuleAction.Builder,RuleAction>
The action that WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.
| Modifier and Type | Class and Description |
|---|---|
static interface |
RuleAction.Builder |
| Modifier and Type | Method and Description |
|---|---|
AllowAction |
allow()
Instructs WAF to allow the web request.
|
BlockAction |
block()
Instructs WAF to block the web request.
|
static RuleAction.Builder |
builder() |
CaptchaAction |
captcha()
Instructs WAF to run a
CAPTCHA check against the web request. |
ChallengeAction |
challenge()
Instructs WAF to run a
Challenge check against the web request. |
CountAction |
count()
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the
web ACL.
|
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 RuleAction.Builder> |
serializableBuilderClass() |
RuleAction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final BlockAction block()
Instructs WAF to block the web request.
public final AllowAction allow()
Instructs WAF to allow the web request.
public final CountAction count()
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
public final CaptchaAction captcha()
Instructs WAF to run a CAPTCHA check against the web request.
CAPTCHA check against the web request.public final ChallengeAction challenge()
Instructs WAF to run a Challenge check against the web request.
Challenge check against the web request.public RuleAction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RuleAction.Builder,RuleAction>public static RuleAction.Builder builder()
public static Class<? extends RuleAction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.