interface CfnRuleMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.WAFRegional.Mixins.CfnRuleMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswafregional/mixins#CfnRuleMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.wafregional.mixins.CfnRuleMixinProps |
Python | aws_cdk.mixins_preview.aws_wafregional.mixins.CfnRuleMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_wafregional » mixins » CfnRuleMixinProps |
Properties for CfnRulePropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafregional-rule.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as wafregional_mixins } from '@aws-cdk/mixins-preview/aws-wafregional';
const cfnRuleMixinProps: wafregional_mixins.CfnRuleMixinProps = {
metricName: 'metricName',
name: 'name',
predicates: [{
dataId: 'dataId',
negated: false,
type: 'type',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| metric | string | A name for the metrics for this Rule . |
| name? | string | The friendly name or description for the Rule . |
| predicates? | IResolvable | (IResolvable | Predicate)[] | 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
(optional)
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
(optional)
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 | Predicate)[]
(optional)
The Predicates object contains one Predicate element for each ByteMatchSet , IPSet , or SqlInjectionMatchSet object that you want to include in a Rule .

.NET
Go
Java
Python
TypeScript