interface HeaderMatchPatternProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.WAFv2.Mixins.CfnWebACLPropsMixin.HeaderMatchPatternProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswafv2/mixins#CfnWebACLPropsMixin_HeaderMatchPatternProperty |
Java | software.amazon.awscdk.mixins.preview.services.wafv2.mixins.CfnWebACLPropsMixin.HeaderMatchPatternProperty |
Python | aws_cdk.mixins_preview.aws_wafv2.mixins.CfnWebACLPropsMixin.HeaderMatchPatternProperty |
TypeScript | @aws-cdk/mixins-preview » aws_wafv2 » mixins » CfnWebACLPropsMixin » HeaderMatchPatternProperty |
The filter to use to identify the subset of headers to inspect in a web request.
You must specify exactly one setting: either All , IncludedHeaders , or ExcludedHeaders .
Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as wafv2_mixins } from '@aws-cdk/mixins-preview/aws-wafv2';
declare const all: any;
const headerMatchPatternProperty: wafv2_mixins.CfnWebACLPropsMixin.HeaderMatchPatternProperty = {
all: all,
excludedHeaders: ['excludedHeaders'],
includedHeaders: ['includedHeaders'],
};
Properties
| Name | Type | Description |
|---|---|---|
| all? | any | Inspect all headers. |
| excluded | string[] | Inspect only the headers whose keys don't match any of the strings specified here. |
| included | string[] | Inspect only the headers that have a key that matches one of the strings specified here. |
all?
Type:
any
(optional)
Inspect all headers.
excludedHeaders?
Type:
string[]
(optional)
Inspect only the headers whose keys don't match any of the strings specified here.
includedHeaders?
Type:
string[]
(optional)
Inspect only the headers that have a key that matches one of the strings specified here.

.NET
Go
Java
Python
TypeScript