Interface for the Rule

interface Rule {
    action: RuleActionProperty;
    captchaConfig?: CaptchaConfigProperty;
    name: string;
    priority: number;
    ruleLabels?: LabelProperty[];
    statement: StatementProperty;
    visibilityConfig: VisibilityConfigProperty;
}

Properties

action: RuleActionProperty
captchaConfig?: CaptchaConfigProperty
name: string
priority: number

Each rule in a web ACL and each rule in a rule group must have a unique priority setting to ensure proper rule execution. More information about processing order of rules and rule groups in a web ACL

ruleLabels?: LabelProperty[]
statement: StatementProperty
visibilityConfig: VisibilityConfigProperty