faint-balloon-33174
05/23/2022, 5:30 PMCookies
field but https://www.pulumi.com/registry/packages/aws/api-docs/wafv2/webacl/#webaclrulestatementbytematchstatementfieldtomatch defines no such field. Also that page in the documentation is so long that it causes problems for both Chrome and Firefox 😆.
Here's the full JSON of an example rule in the AWS UI:
{
"Name": "test-rule",
"Priority": 0,
"Action": {
"Allow": {}
},
"VisibilityConfig": {
"SampledRequestsEnabled": true,
"CloudWatchMetricsEnabled": true,
"MetricName": "test-rule"
},
"Statement": {
"OrStatement": {
"Statements": [
{
"ByteMatchStatement": {
"FieldToMatch": {
"Cookies": {
"MatchScope": "ALL",
"MatchPattern": {
"IncludedCookies": [
"test-cookie-123"
]
},
"OversizeHandling": ""
}
},
"PositionalConstraint": "EXACTLY",
"SearchString": "testvalue123",
"TextTransformations": [
{
"Type": "NONE",
"Priority": 0
}
]
}
},
{}
]
}
}
}