@Stability(value=Stable) public static final class CfnWebACL.ActivatedRuleProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACL.ActivatedRuleProperty>
CfnWebACL.ActivatedRuleProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnWebACL.ActivatedRuleProperty.Builder |
action(CfnWebACL.WafActionProperty action)
Sets the value of
CfnWebACL.ActivatedRuleProperty.getAction() |
CfnWebACL.ActivatedRuleProperty.Builder |
action(IResolvable action)
Sets the value of
CfnWebACL.ActivatedRuleProperty.getAction() |
CfnWebACL.ActivatedRuleProperty |
build()
Builds the configured instance.
|
CfnWebACL.ActivatedRuleProperty.Builder |
priority(Number priority)
Sets the value of
CfnWebACL.ActivatedRuleProperty.getPriority() |
CfnWebACL.ActivatedRuleProperty.Builder |
ruleId(String ruleId)
Sets the value of
CfnWebACL.ActivatedRuleProperty.getRuleId() |
@Stability(value=Stable) public CfnWebACL.ActivatedRuleProperty.Builder priority(Number priority)
CfnWebACL.ActivatedRuleProperty.getPriority()priority - Specifies the order in which the `Rules` in a `WebACL` are evaluated. This parameter is required.
Rules with a lower value for Priority are evaluated before Rules with a higher value. The value must be a unique integer. If you add multiple Rules to a WebACL , the values don't need to be consecutive.this@Stability(value=Stable) public CfnWebACL.ActivatedRuleProperty.Builder ruleId(String ruleId)
CfnWebACL.ActivatedRuleProperty.getRuleId()ruleId - The `RuleId` for a `Rule` . This parameter is required.
You use RuleId to get more information about a Rule , update a Rule , insert a Rule into a WebACL or delete a one from a WebACL , or delete a Rule from AWS WAF .
RuleId is returned by CreateRule and by ListRules .
this@Stability(value=Stable) public CfnWebACL.ActivatedRuleProperty.Builder action(CfnWebACL.WafActionProperty action)
CfnWebACL.ActivatedRuleProperty.getAction()action - Specifies the action that Amazon CloudFront or AWS WAF takes when a web request matches the conditions in the `Rule` .
Valid values for Action include 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|OverrideAction applies only when updating or adding a RuleGroup to a WebACL . In this case, you do not use ActivatedRule|Action . For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction .
this@Stability(value=Stable) public CfnWebACL.ActivatedRuleProperty.Builder action(IResolvable action)
CfnWebACL.ActivatedRuleProperty.getAction()action - Specifies the action that Amazon CloudFront or AWS WAF takes when a web request matches the conditions in the `Rule` .
Valid values for Action include 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|OverrideAction applies only when updating or adding a RuleGroup to a WebACL . In this case, you do not use ActivatedRule|Action . For all other update requests, ActivatedRule|Action is used instead of ActivatedRule|OverrideAction .
this@Stability(value=Stable) public CfnWebACL.ActivatedRuleProperty build()
build in interface software.amazon.jsii.Builder<CfnWebACL.ActivatedRuleProperty>CfnWebACL.ActivatedRulePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.