Interface CfnWebACL.ICookieMatchPatternProperty
The filter to use to identify the subset of cookies to inspect in a web request.
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.AWS.WAFv2.dll
Syntax (csharp)
public interface ICookieMatchPatternProperty
Syntax (vb)
Public Interface ICookieMatchPatternProperty
Remarks
You must specify exactly one setting: either All
, IncludedCookies
, or ExcludedCookies
.
Example JSON: "MatchPattern": { "IncludedCookies": {"KeyToInclude1", "KeyToInclude2", "KeyToInclude3"} }
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
Properties
All | Inspect all cookies. |
ExcludedCookies | Inspect only the cookies whose keys don't match any of the strings specified here. |
IncludedCookies | Inspect only the cookies that have a key that matches one of the strings specified here. |
Properties
All
Inspect all cookies.
virtual object All { get; }
Property Value
System.Object
Remarks
ExcludedCookies
Inspect only the cookies whose keys don't match any of the strings specified here.
virtual string[] ExcludedCookies { get; }
Property Value
System.String[]
Remarks
IncludedCookies
Inspect only the cookies that have a key that matches one of the strings specified here.
virtual string[] IncludedCookies { get; }
Property Value
System.String[]