Skip to content

LabelMatchStatement

Source code in docs_src/capo_wafv2/types/label_match_statement.py
class LabelMatchStatement(TypedDict, closed=True):
    scope: "capo_wafv2.types.label_match_scope.LabelMatchScope"
    """<p>Specify whether you want to match using the label name or just the namespace. </p>"""
    key: "capo_wafv2.types.label_match_key.LabelMatchKey"
    """<p>The string to match against. The setting you provide for this depends on the match statement's <code>Scope</code> setting: </p> <ul> <li> <p>If the <code>Scope</code> indicates <code>LABEL</code>, then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name. </p> </li> <li> <p>If the <code>Scope</code> indicates <code>NAMESPACE</code>, then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.</p> </li> </ul> <p>Labels are case sensitive and components of a label must be separated by colon, for example <code>NS1:NS2:name</code>.</p>"""

key instance-attribute

The string to match against. The setting you provide for this depends on the match statement's Scope setting:

  • If the Scope indicates LABEL, then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name.

  • If the Scope indicates NAMESPACE, then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.

Labels are case sensitive and components of a label must be separated by colon, for example NS1:NS2:name.

scope instance-attribute

Specify whether you want to match using the label name or just the namespace.