Interface CfnWebACLProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACLProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.132Z")
@Stability(Stable)
public interface CfnWebACLProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnWebACL.
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.waf.regional.*;
CfnWebACLProps cfnWebACLProps = CfnWebACLProps.builder()
.defaultAction(ActionProperty.builder()
.type("type")
.build())
.metricName("metricName")
.name("name")
// the properties below are optional
.rules(List.of(RuleProperty.builder()
.action(ActionProperty.builder()
.type("type")
.build())
.priority(123)
.ruleId("ruleId")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnWebACLPropsstatic final classAn implementation forCfnWebACLProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnWebACLProps.Builderbuilder()The action to perform if none of theRulescontained in theWebACLmatch.A name for the metrics for thisWebACL.getName()A friendly name or description of theWebACL.default ObjectgetRules()An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDefaultAction
The action to perform if none of theRulescontained in theWebACLmatch.The action is specified by the
WafActionobject. -
getMetricName
A name for the metrics for thisWebACL.The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change
MetricNameafter you create theWebACL. -
getName
A friendly name or description of theWebACL.You can't change the name of a
WebACLafter you create it. -
getRules
An array that contains the action for eachRulein aWebACL, the priority of theRule, and the ID of theRule. -
builder
- Returns:
- a
CfnWebACLProps.BuilderofCfnWebACLProps
-