{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-waf/json-schema/aws-waf-create-rate-based-rule-response-schema.json",
  "title": "CreateRateBasedRuleResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-waf-rate-based-rule-api-openapi.yml#/components/schemas/CreateRateBasedRuleResponse",
  "type": "object",
  "properties": {
    "Rule": {
      "$ref": "#/$defs/RateBasedRule"
    },
    "ChangeToken": {
      "type": "string",
      "description": "The ChangeToken that you used to submit the CreateRateBasedRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus."
    }
  },
  "$defs": {
    "Predicate": {
      "type": "object",
      "properties": {
        "Negated": {
          "type": "boolean",
          "description": "Set Negated to False if you want AWS WAF to allow, block, or count requests based on the settings in the specified ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, or SizeConstraintSet. For example, if an IPSet includes the IP address 192.0.2.44, AWS WAF will allow or block requests based on that IP address. Set Negated to True if you want AWS WAF to allow or block a request based on the negation of the settings in the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, RegexMatchSet, GeoMatchSet, or SizeConstraintSet. For example, if an IPSet includes th"
        },
        "Type": {
          "type": "string",
          "enum": [
            "IPMatch",
            "ByteMatch",
            "SqlInjectionMatch",
            "GeoMatch",
            "SizeConstraint",
            "XssMatch",
            "RegexMatch"
          ],
          "description": "The type of predicate in a Rule, such as ByteMatch or IPSet."
        },
        "DataId": {
          "type": "string",
          "description": "A unique identifier for a predicate in a Rule, such as ByteMatchSetId or IPSetId. The ID is returned by the corresponding Create or List command."
        }
      },
      "required": [
        "Negated",
        "Type",
        "DataId"
      ]
    },
    "RateBasedRule": {
      "type": "object",
      "properties": {
        "RuleId": {
          "type": "string",
          "description": "A unique identifier for a RateBasedRule. You use RuleId to get more information about a RateBasedRule (see GetRateBasedRule), update a RateBasedRule (see UpdateRateBasedRule), insert a RateBasedRule into a WebACL or delete one from a WebACL (see UpdateWebACL), or delete a RateBasedRule from AWS WAF (see DeleteRateBasedRule)."
        },
        "Name": {
          "type": "string",
          "description": "A friendly name or description for a RateBasedRule. You can't change the name of a RateBasedRule after you create it."
        },
        "MetricName": {
          "type": "string",
          "description": "A friendly name or description for the metrics for a RateBasedRule. 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 RateBasedRule."
        },
        "MatchPredicates": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Predicate"
          },
          "description": "The Predicates object contains one Predicate element for each ByteMatchSet, IPSet, or SqlInjectionMatchSet object that you want to include in a RateBasedRule."
        },
        "RateKey": {
          "type": "string",
          "enum": [
            "IP"
          ],
          "description": "The field that AWS WAF uses to determine if requests are likely arriving from single source and thus subject to rate monitoring. The only valid value for RateKey is IP. IP indicates that requests arriving from the same IP address are subject to the RateLimit that is specified in the RateBasedRule."
        },
        "RateLimit": {
          "type": "integer",
          "description": "The maximum number of requests, which have an identical value in the field specified by the RateKey, allowed in a five-minute period. If the number of requests exceeds the RateLimit and the other predicates specified in the rule are also met, AWS WAF triggers the action that is specified for this rule."
        }
      },
      "required": [
        "RuleId",
        "MatchPredicates",
        "RateKey",
        "RateLimit"
      ]
    }
  }
}