{
  "Name": "apdev-header-rule",
  "Priority": 0,
  "Statement": {
    "OrStatement": {
      "Statements": [
        {
          "NotStatement": {
            "Statement": {
              "ByteMatchStatement": {
                "SearchString": "application/json",
                "FieldToMatch": {
                  "SingleHeader": {
                    "Name": "content-type"
                  }
                },
                "TextTransformations": [
                  {
                    "Priority": 0,
                    "Type": "NONE"
                  }
                ],
                "PositionalConstraint": "EXACTLY"
              }
            }
          }
        },
        {
          "NotStatement": {
            "Statement": {
              "ByteMatchStatement": {
                "SearchString": "keep-alive",
                "FieldToMatch": {
                  "SingleHeader": {
                    "Name": "connection"
                  }
                },
                "TextTransformations": [
                  {
                    "Priority": 0,
                    "Type": "NONE"
                  }
                ],
                "PositionalConstraint": "EXACTLY"
              }
            }
          }
        },
        {
          "NotStatement": {
            "Statement": {
              "ByteMatchStatement": {
                "SearchString": "gzip, deflate",
                "FieldToMatch": {
                  "SingleHeader": {
                    "Name": "accept-encoding"
                  }
                },
                "TextTransformations": [
                  {
                    "Priority": 0,
                    "Type": "NONE"
                  }
                ],
                "PositionalConstraint": "EXACTLY"
              }
            }
          }
        },
        {
          "RegexMatchStatement": {
            "RegexString": "^.*",
            "FieldToMatch": {
              "Headers": {
                "MatchPattern": {
                  "ExcludedHeaders": [
                    "host",
                    "content-length",
                    "connection",
                    "accept",
                    "x-forwarded-for",
                    "content-type",
                    "user-agent",
                    "via",
                    "x-amz-cf-id",
                    "accept-encoding"
                  ]
                },
                "MatchScope": "KEY",
                "OversizeHandling": "CONTINUE"
              }
            },
            "TextTransformations": [
              {
                "Priority": 0,
                "Type": "LOWERCASE"
              }
            ]
          }
        }
      ]
    }
  },
  "Action": {
    "Block": {}
  },
  "VisibilityConfig": {
    "SampledRequestsEnabled": true,
    "CloudWatchMetricsEnabled": true,
    "MetricName": "apdev-header-rule"
  }
}