Class CfnWebACL.RuleProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnWebACL.RuleProperty
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnWebACL.RuleProperty
CfnWebACL.RuleProperty
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.wafv2.CfnWebACL.RuleProperty
CfnWebACL.RuleProperty.Builder, CfnWebACL.RuleProperty.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(CfnWebACL.RuleProperty.Builder builder) Constructor that initializes the object based on literal property values passed by theCfnWebACL.RuleProperty.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final Object
The action that AWS WAF should take on a web request when it matches the rule's statement.final Object
Specifies how AWS WAF should handleCAPTCHA
evaluations.final Object
Specifies how AWS WAF should handleChallenge
evaluations.final String
getName()
The name of the rule.final Object
The override action to apply to the rules in a rule group, instead of the individual rule action settings.final Number
If you define more than oneRule
in aWebACL
, AWS WAF evaluates each request against theRules
in order based on the value ofPriority
.final Object
Labels to apply to web requests that match the rule match statement.final Object
The AWS WAF processing statement for the rule, for exampleByteMatchStatement
orSizeConstraintStatement
.final Object
Defines and enables Amazon CloudWatch metrics and web request sample collection.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnWebACL.RuleProperty.Builder
.
-
-
Method Details
-
getName
Description copied from interface:CfnWebACL.RuleProperty
The name of the rule.If you change the name of a
Rule
after you create it and you want the rule's metric name to reflect the change, update the metric name in the rule'sVisibilityConfig
settings. AWS WAF doesn't automatically update the metric name when you update the rule name.- Specified by:
getName
in interfaceCfnWebACL.RuleProperty
- See Also:
-
getPriority
Description copied from interface:CfnWebACL.RuleProperty
If you define more than oneRule
in aWebACL
, AWS WAF evaluates each request against theRules
in order based on the value ofPriority
.AWS WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.
- Specified by:
getPriority
in interfaceCfnWebACL.RuleProperty
- See Also:
-
getStatement
Description copied from interface:CfnWebACL.RuleProperty
The AWS WAF processing statement for the rule, for exampleByteMatchStatement
orSizeConstraintStatement
.- Specified by:
getStatement
in interfaceCfnWebACL.RuleProperty
- See Also:
-
getVisibilityConfig
Description copied from interface:CfnWebACL.RuleProperty
Defines and enables Amazon CloudWatch metrics and web request sample collection.If you change the name of a
Rule
after you create it and you want the rule's metric name to reflect the change, update the metric name as well. AWS WAF doesn't automatically update the metric name.- Specified by:
getVisibilityConfig
in interfaceCfnWebACL.RuleProperty
- See Also:
-
getAction
Description copied from interface:CfnWebACL.RuleProperty
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
andManagedRuleGroupStatement
.You must set either this
Action
setting or the rule'sOverrideAction
, but not both:- If the rule statement doesn't reference a rule group, you must set this rule action setting and you must not set the rule's override action setting.
- If the rule statement references a rule group, you must not set this action setting, because the actions are already set on the rules inside the rule group. You must set the rule's override action setting to indicate specifically whether to override the actions that are set on the rules in the rule group.
- Specified by:
getAction
in interfaceCfnWebACL.RuleProperty
- See Also:
-
getCaptchaConfig
Description copied from interface:CfnWebACL.RuleProperty
Specifies how AWS WAF should handleCAPTCHA
evaluations.If you don't specify this, AWS WAF uses the
CAPTCHA
configuration that's defined for the web ACL.- Specified by:
getCaptchaConfig
in interfaceCfnWebACL.RuleProperty
- See Also:
-
getChallengeConfig
Description copied from interface:CfnWebACL.RuleProperty
Specifies how AWS WAF should handleChallenge
evaluations.If you don't specify this, AWS WAF uses the challenge configuration that's defined for the web ACL.
- Specified by:
getChallengeConfig
in interfaceCfnWebACL.RuleProperty
- See Also:
-
getOverrideAction
Description copied from interface:CfnWebACL.RuleProperty
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
andManagedRuleGroupStatement
.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 theAction
setting, but not both:- If the rule statement references a rule group, you must set this override action setting and you must not set the rule's action setting.
- If the rule statement doesn't reference a rule group, you must set the rule action setting and you must not set the rule's override action setting.
- Specified by:
getOverrideAction
in interfaceCfnWebACL.RuleProperty
- See Also:
-
getRuleLabels
Description copied from interface:CfnWebACL.RuleProperty
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:
- Separate each component of the label with a colon.
- Each namespace or name can have up to 128 characters.
- You can specify up to 5 namespaces in a label.
- Don't use the following reserved words in your label specification:
aws
,waf
,managed
,rulegroup
,webacl
,regexpatternset
, oripset
.
For example,
myLabelName
ornameSpace1:nameSpace2:myLabelName
.- Specified by:
getRuleLabels
in interfaceCfnWebACL.RuleProperty
- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-