@Stability(value=Stable) public static final class CfnWebACL.RuleProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACL.RuleProperty>
CfnWebACL.RuleProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder name(String name)
CfnWebACL.RuleProperty.getName()name - The name of the rule. This parameter is required.
You can't change the name of a Rule after you create it.this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder priority(Number priority)
CfnWebACL.RuleProperty.getPriority()priority - If you define more than one `Rule` in a `WebACL` , AWS WAF evaluates each request against the `Rules` in order based on the value of `Priority` . This parameter is required.
AWS WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder statement(CfnWebACL.StatementProperty statement)
CfnWebACL.RuleProperty.getStatement()statement - The AWS WAF processing statement for the rule, for example `ByteMatchStatement` or `SizeConstraintStatement` . This parameter is required.this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder statement(IResolvable statement)
CfnWebACL.RuleProperty.getStatement()statement - The AWS WAF processing statement for the rule, for example `ByteMatchStatement` or `SizeConstraintStatement` . This parameter is required.this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder visibilityConfig(CfnWebACL.VisibilityConfigProperty visibilityConfig)
CfnWebACL.RuleProperty.getVisibilityConfig()visibilityConfig - Defines and enables Amazon CloudWatch metrics and web request sample collection. This parameter is required.this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder visibilityConfig(IResolvable visibilityConfig)
CfnWebACL.RuleProperty.getVisibilityConfig()visibilityConfig - Defines and enables Amazon CloudWatch metrics and web request sample collection. This parameter is required.this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder action(CfnWebACL.RuleActionProperty action)
CfnWebACL.RuleProperty.getAction()action - The action that AWS WAF should take on a web request when it matches the rule's statement.
Settings at the web ACL level can override the rule action setting.
This is used only for rules whose statements don't reference a rule group. Rule statements that reference a rule group are RuleGroupReferenceStatement and ManagedRuleGroupStatement .
You must set either this Action setting or the rule's OverrideAction , but not both:
this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder action(IResolvable action)
CfnWebACL.RuleProperty.getAction()action - The action that AWS WAF should take on a web request when it matches the rule's statement.
Settings at the web ACL level can override the rule action setting.
This is used only for rules whose statements don't reference a rule group. Rule statements that reference a rule group are RuleGroupReferenceStatement and ManagedRuleGroupStatement .
You must set either this Action setting or the rule's OverrideAction , but not both:
this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder captchaConfig(CfnWebACL.CaptchaConfigProperty captchaConfig)
CfnWebACL.RuleProperty.getCaptchaConfig()captchaConfig - Specifies how AWS WAF should handle `CAPTCHA` evaluations.
If you don't specify this, AWS WAF uses the CAPTCHA configuration that's defined for the web ACL.this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder captchaConfig(IResolvable captchaConfig)
CfnWebACL.RuleProperty.getCaptchaConfig()captchaConfig - Specifies how AWS WAF should handle `CAPTCHA` evaluations.
If you don't specify this, AWS WAF uses the CAPTCHA configuration that's defined for the web ACL.this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder overrideAction(CfnWebACL.OverrideActionProperty overrideAction)
CfnWebACL.RuleProperty.getOverrideAction()overrideAction - The override action to apply to the rules in a rule group, instead of the individual rule action settings.
This is used only for rules whose statements reference a rule group. Rule statements that reference a rule group are RuleGroupReferenceStatement and ManagedRuleGroupStatement .
Set the override action to none to leave the rule group rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
You must set either this OverrideAction setting or the Action setting, but not both:
this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder overrideAction(IResolvable overrideAction)
CfnWebACL.RuleProperty.getOverrideAction()overrideAction - The override action to apply to the rules in a rule group, instead of the individual rule action settings.
This is used only for rules whose statements reference a rule group. Rule statements that reference a rule group are RuleGroupReferenceStatement and ManagedRuleGroupStatement .
Set the override action to none to leave the rule group rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
You must set either this OverrideAction setting or the Action setting, but not both:
this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder ruleLabels(IResolvable ruleLabels)
CfnWebACL.RuleProperty.getRuleLabels()ruleLabels - Labels to apply to web requests that match the rule match statement.
AWS WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.
Rules that run after this rule in the web ACL can match against these labels using a LabelMatchStatement .
For each label, provide a case-sensitive string containing optional namespaces and a label name, according to the following guidelines:
aws , waf , managed , rulegroup , webacl , regexpatternset , or ipset .
For example, myLabelName or nameSpace1:nameSpace2:myLabelName .
this@Stability(value=Stable) public CfnWebACL.RuleProperty.Builder ruleLabels(List<? extends Object> ruleLabels)
CfnWebACL.RuleProperty.getRuleLabels()ruleLabels - Labels to apply to web requests that match the rule match statement.
AWS WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.
Rules that run after this rule in the web ACL can match against these labels using a LabelMatchStatement .
For each label, provide a case-sensitive string containing optional namespaces and a label name, according to the following guidelines:
aws , waf , managed , rulegroup , webacl , regexpatternset , or ipset .
For example, myLabelName or nameSpace1:nameSpace2:myLabelName .
this@Stability(value=Stable) public CfnWebACL.RuleProperty build()
build in interface software.amazon.jsii.Builder<CfnWebACL.RuleProperty>CfnWebACL.RulePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.