Class CfnWebACL.LabelMatchStatementProperty
A rule statement to match against labels that have been added to the web request by rules that have already run in the web ACL.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LabelMatchStatementProperty : Object, CfnWebACL.ILabelMatchStatementProperty
Syntax (vb)
Public Class LabelMatchStatementProperty
Inherits Object
Implements CfnWebACL.ILabelMatchStatementProperty
Remarks
The label match statement provides the label or namespace string to search for. The label string can represent a part or all of the fully qualified label name that had been added to the web request. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label. If you do not provide the fully qualified name in your label match string, AWS WAF performs the search for labels that were added in the same context as the label match statement.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var labelMatchStatementProperty = new LabelMatchStatementProperty {
Key = "key",
Scope = "scope"
};
Synopsis
Constructors
LabelMatchStatementProperty() |
Properties
Key | The string to match against. The setting you provide for this depends on the match statement's |
Scope | Specify whether you want to match using the label name or just the namespace. |
Constructors
LabelMatchStatementProperty()
public LabelMatchStatementProperty()
Properties
Key
The string to match against. The setting you provide for this depends on the match statement's Scope
setting:.
public string Key { get; set; }
Property Value
System.String
Remarks
Labels are case sensitive and components of a label must be separated by colon, for example NS1:NS2:name
.
Scope
Specify whether you want to match using the label name or just the namespace.
public string Scope { get; set; }
Property Value
System.String