Interface CfnWebACL.ActivatedRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACL.ActivatedRuleProperty.Jsii$Proxy
- Enclosing class:
- CfnWebACL
ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL , and the action that you want AWS WAF to take when a web request matches the Rule ( ALLOW , BLOCK , or COUNT ).
To specify whether to insert or delete a Rule , use the Action parameter in the WebACLUpdate data type.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.waf.*;
ActivatedRuleProperty activatedRuleProperty = ActivatedRuleProperty.builder()
.priority(123)
.ruleId("ruleId")
// the properties below are optional
.action(WafActionProperty.builder()
.type("type")
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnWebACL.ActivatedRulePropertystatic final classAn implementation forCfnWebACL.ActivatedRuleProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPriority
Specifies the order in which theRulesin aWebACLare evaluated.Rules with a lower value for
Priorityare evaluated beforeRuleswith a higher value. The value must be a unique integer. If you add multipleRulesto aWebACL, the values don't need to be consecutive. -
getRuleId
TheRuleIdfor aRule.You use
RuleIdto get more information about aRule, update aRule, insert aRuleinto aWebACLor delete a one from aWebACL, or delete aRulefrom AWS WAF .RuleIdis returned byCreateRuleand byListRules. -
getAction
Specifies the action that Amazon CloudFront or AWS WAF takes when a web request matches the conditions in theRule.Valid values for
Actioninclude the following:ALLOW: CloudFront responds with the requested object.BLOCK: CloudFront responds with an HTTP 403 (Forbidden) status code.COUNT: AWS WAF increments a counter of requests that match the conditions in the rule and then continues to inspect the web request based on the remaining rules in the web ACL.
ActivatedRule|OverrideActionapplies only when updating or adding aRuleGroupto aWebACL. In this case, you do not useActivatedRule|Action. For all other update requests,ActivatedRule|Actionis used instead ofActivatedRule|OverrideAction. -
builder
-