Class CfnRuleGroup.CookieMatchPatternProperty
The filter to use to identify the subset of cookies to inspect in a web request.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CookieMatchPatternProperty : Object, CfnRuleGroup.ICookieMatchPatternProperty
Syntax (vb)
Public Class CookieMatchPatternProperty
Inherits Object
Implements CfnRuleGroup.ICookieMatchPatternProperty
Remarks
You must specify exactly one setting: either All
, IncludedCookies
, or ExcludedCookies
.
Example JSON: "MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }
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 all;
var cookieMatchPatternProperty = new CookieMatchPatternProperty {
All = all,
ExcludedCookies = new [] { "excludedCookies" },
IncludedCookies = new [] { "includedCookies" }
};
Synopsis
Constructors
Cookie |
Properties
All | Inspect all cookies. |
Excluded |
Inspect only the cookies whose keys don't match any of the strings specified here. |
Included |
Inspect only the cookies that have a key that matches one of the strings specified here. |
Constructors
CookieMatchPatternProperty()
public CookieMatchPatternProperty()
Properties
All
Inspect all cookies.
public object All { get; set; }
Property Value
System.
Remarks
ExcludedCookies
Inspect only the cookies whose keys don't match any of the strings specified here.
public string[] ExcludedCookies { get; set; }
Property Value
System.
Remarks
IncludedCookies
Inspect only the cookies that have a key that matches one of the strings specified here.
public string[] IncludedCookies { get; set; }
Property Value
System.