Class CfnRuleGroupPropsMixin.RuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroupPropsMixin.RuleProperty>
- Enclosing interface:
CfnRuleGroupPropsMixin.RuleProperty
CfnRuleGroupPropsMixin.RuleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRuleGroupPropsMixin.RuleProperty.getAction()action(IResolvable action) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getAction()build()Builds the configured instance.captchaConfig(CfnRuleGroupPropsMixin.CaptchaConfigProperty captchaConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getCaptchaConfig()captchaConfig(IResolvable captchaConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getCaptchaConfig()challengeConfig(CfnRuleGroupPropsMixin.ChallengeConfigProperty challengeConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getChallengeConfig()challengeConfig(IResolvable challengeConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getChallengeConfig()Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getName()Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getPriority()ruleLabels(List<? extends Object> ruleLabels) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getRuleLabels()ruleLabels(IResolvable ruleLabels) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getRuleLabels()Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getStatement()statement(IResolvable statement) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getStatement()visibilityConfig(CfnRuleGroupPropsMixin.VisibilityConfigProperty visibilityConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getVisibilityConfig()visibilityConfig(IResolvable visibilityConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getVisibilityConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getAction()- Parameters:
action- The action that AWS WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.- Returns:
this
-
action
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder action(CfnRuleGroupPropsMixin.RuleActionProperty action) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getAction()- Parameters:
action- The action that AWS WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.- Returns:
this
-
captchaConfig
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder captchaConfig(IResolvable captchaConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getCaptchaConfig()- Parameters:
captchaConfig- Specifies how AWS WAF should handleCAPTCHAevaluations. If you don't specify this, AWS WAF uses theCAPTCHAconfiguration that's defined for the web ACL.- Returns:
this
-
captchaConfig
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder captchaConfig(CfnRuleGroupPropsMixin.CaptchaConfigProperty captchaConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getCaptchaConfig()- Parameters:
captchaConfig- Specifies how AWS WAF should handleCAPTCHAevaluations. If you don't specify this, AWS WAF uses theCAPTCHAconfiguration that's defined for the web ACL.- Returns:
this
-
challengeConfig
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder challengeConfig(IResolvable challengeConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getChallengeConfig()- Parameters:
challengeConfig- Specifies how AWS WAF should handleChallengeevaluations. If you don't specify this, AWS WAF uses the challenge configuration that's defined for the web ACL.- Returns:
this
-
challengeConfig
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder challengeConfig(CfnRuleGroupPropsMixin.ChallengeConfigProperty challengeConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getChallengeConfig()- Parameters:
challengeConfig- Specifies how AWS WAF should handleChallengeevaluations. If you don't specify this, AWS WAF uses the challenge configuration that's defined for the web ACL.- Returns:
this
-
name
Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getName()- Parameters:
name- The name of the rule. If you change the name of aRuleafter you create it and you want the rule's metric name to reflect the change, update the metric name in the rule'sVisibilityConfigsettings. AWS WAF doesn't automatically update the metric name when you update the rule name.- Returns:
this
-
priority
Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getPriority()- Parameters:
priority- If you define more than oneRulein aWebACL, AWS WAF evaluates each request against theRulesin 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.- Returns:
this
-
ruleLabels
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder ruleLabels(IResolvable ruleLabels) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getRuleLabels()- Parameters:
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.Any rule that isn't a rule group reference statement or managed rule group statement can add labels to matching web requests.
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,
myLabelNameornameSpace1:nameSpace2:myLabelName.- Returns:
this
-
ruleLabels
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder ruleLabels(List<? extends Object> ruleLabels) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getRuleLabels()- Parameters:
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.Any rule that isn't a rule group reference statement or managed rule group statement can add labels to matching web requests.
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,
myLabelNameornameSpace1:nameSpace2:myLabelName.- Returns:
this
-
statement
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder statement(IResolvable statement) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getStatement()- Parameters:
statement- The AWS WAF processing statement for the rule, for exampleByteMatchStatementorSizeConstraintStatement.- Returns:
this
-
statement
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder statement(CfnRuleGroupPropsMixin.StatementProperty statement) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getStatement()- Parameters:
statement- The AWS WAF processing statement for the rule, for exampleByteMatchStatementorSizeConstraintStatement.- Returns:
this
-
visibilityConfig
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder visibilityConfig(IResolvable visibilityConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getVisibilityConfig()- Parameters:
visibilityConfig- Defines and enables Amazon CloudWatch metrics and web request sample collection. If you change the name of aRuleafter 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.- Returns:
this
-
visibilityConfig
@Stability(Stable) public CfnRuleGroupPropsMixin.RuleProperty.Builder visibilityConfig(CfnRuleGroupPropsMixin.VisibilityConfigProperty visibilityConfig) Sets the value ofCfnRuleGroupPropsMixin.RuleProperty.getVisibilityConfig()- Parameters:
visibilityConfig- Defines and enables Amazon CloudWatch metrics and web request sample collection. If you change the name of aRuleafter 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroupPropsMixin.RuleProperty>- Returns:
- a new instance of
CfnRuleGroupPropsMixin.RuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-