{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-waf/json-schema/aws-waf-create-rule-request-schema.json",
  "title": "CreateRuleRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-waf-rule-api-openapi.yml#/components/schemas/CreateRuleRequest",
  "type": "object",
  "properties": {
    "Name": {
      "type": "string",
      "description": "A friendly name or description of the Rule. You can't change the name of a Rule after you create it."
    },
    "MetricName": {
      "type": "string",
      "description": "A friendly name or description for the metrics for this Rule. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including \"All\" and \"Default_Action.\" You can't change the name of the metric after you create the Rule."
    },
    "ChangeToken": {
      "type": "string",
      "description": "The value returned by the most recent call to GetChangeToken."
    },
    "Tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/WafTag"
      }
    }
  },
  "required": [
    "Name",
    "MetricName",
    "ChangeToken"
  ],
  "$defs": {
    "WafTag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string"
        },
        "Value": {
          "type": "string"
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    }
  }
}