aws-cdk-lib.aws_wafv2.CfnWebACL.CookieMatchPatternProperty

interface CookieMatchPatternProperty

LanguageType name
.NETAmazon.CDK.AWS.WAFv2.CfnWebACL.CookieMatchPatternProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awswafv2#CfnWebACL_CookieMatchPatternProperty
Javasoftware.amazon.awscdk.services.wafv2.CfnWebACL.CookieMatchPatternProperty
Pythonaws_cdk.aws_wafv2.CfnWebACL.CookieMatchPatternProperty
TypeScript aws-cdk-lib » aws_wafv2 » CfnWebACL » CookieMatchPatternProperty

The filter to use to identify the subset of cookies to inspect in a web request.

You must specify exactly one setting: either All , IncludedCookies , or ExcludedCookies .

Example JSON: "MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';

declare const all: any;
const cookieMatchPatternProperty: wafv2.CfnWebACL.CookieMatchPatternProperty = {
  all: all,
  excludedCookies: ['excludedCookies'],
  includedCookies: ['includedCookies'],
};

Properties

NameTypeDescription
all?anyInspect all cookies.
excludedCookies?string[]Inspect only the cookies whose keys don't match any of the strings specified here.
includedCookies?string[]Inspect only the cookies that have a key that matches one of the strings specified here.

all?

Type: any (optional)

Inspect all cookies.


excludedCookies?

Type: string[] (optional)

Inspect only the cookies whose keys don't match any of the strings specified here.


includedCookies?

Type: string[] (optional)

Inspect only the cookies that have a key that matches one of the strings specified here.