Interface CfnWebACL.RuleGroupReferenceStatementProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnWebACL.RuleGroupReferenceStatementProperty.Jsii$Proxy
Enclosing class:
CfnWebACL

@Stability(Stable) public static interface CfnWebACL.RuleGroupReferenceStatementProperty extends software.amazon.jsii.JsiiSerializable
A rule statement used to run the rules that are defined in a RuleGroup .

To use this, create a rule group with your rules, then provide the ARN of the rule group in this statement.

You cannot nest a RuleGroupReferenceStatement , for example for use inside a NotStatement or OrStatement . You cannot use a rule group reference statement inside another rule group. You can only reference a rule group as a top-level statement within a rule that you define in a web ACL.

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.wafv2.*;
 RuleGroupReferenceStatementProperty ruleGroupReferenceStatementProperty = RuleGroupReferenceStatementProperty.builder()
         .arn("arn")
         // the properties below are optional
         .excludedRules(List.of(ExcludedRuleProperty.builder()
                 .name("name")
                 .build()))
         .ruleActionOverrides(List.of(RuleActionOverrideProperty.builder()
                 .actionToUse(RuleActionProperty.builder()
                         .allow(AllowActionProperty.builder()
                                 .customRequestHandling(CustomRequestHandlingProperty.builder()
                                         .insertHeaders(List.of(CustomHTTPHeaderProperty.builder()
                                                 .name("name")
                                                 .value("value")
                                                 .build()))
                                         .build())
                                 .build())
                         .block(BlockActionProperty.builder()
                                 .customResponse(CustomResponseProperty.builder()
                                         .responseCode(123)
                                         // the properties below are optional
                                         .customResponseBodyKey("customResponseBodyKey")
                                         .responseHeaders(List.of(CustomHTTPHeaderProperty.builder()
                                                 .name("name")
                                                 .value("value")
                                                 .build()))
                                         .build())
                                 .build())
                         .captcha(CaptchaActionProperty.builder()
                                 .customRequestHandling(CustomRequestHandlingProperty.builder()
                                         .insertHeaders(List.of(CustomHTTPHeaderProperty.builder()
                                                 .name("name")
                                                 .value("value")
                                                 .build()))
                                         .build())
                                 .build())
                         .challenge(ChallengeActionProperty.builder()
                                 .customRequestHandling(CustomRequestHandlingProperty.builder()
                                         .insertHeaders(List.of(CustomHTTPHeaderProperty.builder()
                                                 .name("name")
                                                 .value("value")
                                                 .build()))
                                         .build())
                                 .build())
                         .count(CountActionProperty.builder()
                                 .customRequestHandling(CustomRequestHandlingProperty.builder()
                                         .insertHeaders(List.of(CustomHTTPHeaderProperty.builder()
                                                 .name("name")
                                                 .value("value")
                                                 .build()))
                                         .build())
                                 .build())
                         .build())
                 .name("name")
                 .build()))
         .build();
 

See Also: