aws-cdk-lib.aws_wafregional.CfnRuleProps

interface CfnRuleProps

LanguageType name
.NETAmazon.CDK.AWS.WAFRegional.CfnRuleProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awswafregional#CfnRuleProps
Javasoftware.amazon.awscdk.services.waf.regional.CfnRuleProps
Pythonaws_cdk.aws_wafregional.CfnRuleProps
TypeScript aws-cdk-lib » aws_wafregional » CfnRuleProps

Properties for defining a CfnRule.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafregional as wafregional } from 'aws-cdk-lib';
const cfnRuleProps: wafregional.CfnRuleProps = {
  metricName: 'metricName',
  name: 'name',

  // the properties below are optional
  predicates: [{
    dataId: 'dataId',
    negated: false,
    type: 'type',
  }],
};

Properties

NameTypeDescription
metricNamestringA name for the metrics for this Rule .
namestringThe friendly name or description for the Rule .
predicates?IResolvable | IResolvable | PredicateProperty[]The Predicates object contains one Predicate element for each ByteMatchSet , IPSet , or SqlInjectionMatchSet object that you want to include in a Rule .

metricName

Type: string

A name for the metrics for this Rule .

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 the Rule .


name

Type: string

The friendly name or description for the Rule .

You can't change the name of a Rule after you create it.


predicates?

Type: IResolvable | IResolvable | PredicateProperty[] (optional)

The Predicates object contains one Predicate element for each ByteMatchSet , IPSet , or SqlInjectionMatchSet object that you want to include in a Rule .