public class WafAction
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
For the action that is associated with a rule in a WebACL
,
specifies the action that you want AWS WAF to perform when a web request
matches all of the conditions in a rule. For the default action in a
WebACL
, specifies the action that you want AWS WAF to take when
a web request doesn't match all of the conditions in any of the rules in a
WebACL
.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
type
Specifies how you want AWS WAF to respond to requests that match the
settings in a
Rule . |
Constructor and Description |
---|
WafAction() |
Modifier and Type | Method and Description |
---|---|
WafAction |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getType()
Specifies how you want AWS WAF to respond to requests that match the
settings in a
Rule . |
int |
hashCode() |
void |
setType(java.lang.String type)
Specifies how you want AWS WAF to respond to requests that match the
settings in a
Rule . |
void |
setType(WafActionType type)
Specifies how you want AWS WAF to respond to requests that match the
settings in a
Rule . |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
WafAction |
withType(java.lang.String type)
Specifies how you want AWS WAF to respond to requests that match the
settings in a
Rule . |
WafAction |
withType(WafActionType type)
Specifies how you want AWS WAF to respond to requests that match the
settings in a
Rule . |
private java.lang.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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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 void setType(java.lang.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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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
.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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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
.WafActionType
public java.lang.String getType()
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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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
.Rule
. Valid settings include the
following:
ALLOW
: AWS WAF allows requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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
.WafActionType
public WafAction withType(java.lang.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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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
.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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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
.WafActionType
public void setType(WafActionType 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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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
.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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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
.WafActionType
public WafAction withType(WafActionType 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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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
.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 requestsBLOCK
: AWS WAF blocks requestsCOUNT
: 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
.WafActionType
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public WafAction clone()
clone
in class java.lang.Object