CfnRuleProps

class aws_cdk.aws_waf.CfnRuleProps(*, metric_name, name, predicates=None)

Bases: object

__init__(*, metric_name, name, predicates=None)

Properties for defining a AWS::WAF::Rule.

Parameters
  • metric_name (str) – AWS::WAF::Rule.MetricName.

  • name (str) – AWS::WAF::Rule.Name.

  • predicates (Union[IResolvable, None, List[Union[IResolvable, PredicateProperty]]]) – AWS::WAF::Rule.Predicates.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html

Attributes

metric_name

AWS::WAF::Rule.MetricName.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html#cfn-waf-rule-metricname

Return type

str

name

AWS::WAF::Rule.Name.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html#cfn-waf-rule-name

Return type

str

predicates

AWS::WAF::Rule.Predicates.

see :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-waf-rule.html#cfn-waf-rule-predicates

Return type

Union[IResolvable, None, List[Union[IResolvable, PredicateProperty]]]