Interface CfnWebACLProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACLProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-08-23T05:56:24.769Z")
@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.*; CfnWebACLProps cfnWebACLProps = CfnWebACLProps.builder() .defaultAction(WafActionProperty.builder() .type("type") .build()) .metricName("metricName") .name("name") // the properties below are optional .rules(List.of(ActivatedRuleProperty.builder() .priority(123) .ruleId("ruleId") // the properties below are optional .action(WafActionProperty.builder() .type("type") .build()) .build())) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnWebACLProps
static final class
An implementation forCfnWebACLProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic CfnWebACLProps.Builder
builder()
The action to perform if none of theRules
contained in theWebACL
match.The name of the metrics for thisWebACL
.getName()
A friendly name or description of theWebACL
.default Object
getRules()
An array that contains the action for eachRule
in 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 theRules
contained in theWebACL
match.The action is specified by the
WafAction
object.- See Also:
-
getMetricName
The name of 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
MetricName
after you create theWebACL
.- See Also:
-
getName
A friendly name or description of theWebACL
.You can't change the name of a
WebACL
after you create it.- See Also:
-
getRules
An array that contains the action for eachRule
in aWebACL
, the priority of theRule
, and the ID of theRule
.- See Also:
-
builder
- Returns:
- a
CfnWebACLProps.Builder
ofCfnWebACLProps
-