Is there any documentation on how to inspect cooki...
# aws
f
Is there any documentation on how to inspect cookie contents with wafv2? Using the AWS UI I can create a rule group that matches the
Cookies
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:
Copy code
{
  "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
              }
            ]
          }
        },
        {}
      ]
    }
  }
}