Class WafAction
- All Implemented Interfaces:
Serializable
,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
.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getType()
Specifies how you want AWS WAF to respond to requests that match the settings in aRule
.int
hashCode()
void
setType
(WafActionType type) Specifies how you want AWS WAF to respond to requests that match the settings in aRule
.void
Specifies how you want AWS WAF to respond to requests that match the settings in aRule
.toString()
Returns a string representation of this object; useful for testing and debugging.withType
(WafActionType type) Specifies how you want AWS WAF to respond to requests that match the settings in aRule
.Specifies how you want AWS WAF to respond to requests that match the settings in aRule
.
-
Constructor Details
-
WafAction
public WafAction()
-
-
Method Details
-
setType
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 specifyCOUNT
for the default action for aWebACL
.
- Parameters:
type
- Specifies how you want AWS WAF to respond to requests that match the settings in aRule
. 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 specifyCOUNT
for the default action for aWebACL
.
- See Also:
-
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 specifyCOUNT
for the default action for aWebACL
.
- Returns:
- 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 specifyCOUNT
for the default action for aWebACL
.
- See Also:
-
withType
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 specifyCOUNT
for the default action for aWebACL
.
- Parameters:
type
- Specifies how you want AWS WAF to respond to requests that match the settings in aRule
. 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 specifyCOUNT
for the default action for aWebACL
.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setType
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 specifyCOUNT
for the default action for aWebACL
.
- Parameters:
type
- Specifies how you want AWS WAF to respond to requests that match the settings in aRule
. 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 specifyCOUNT
for the default action for aWebACL
.
- See Also:
-
withType
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 specifyCOUNT
for the default action for aWebACL
.
- Parameters:
type
- Specifies how you want AWS WAF to respond to requests that match the settings in aRule
. 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 specifyCOUNT
for the default action for aWebACL
.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-