{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Name",
  "/properties/MetricName"
 ],
 "definitions": {
  "Predicate": {
   "additionalProperties": false,
   "properties": {
    "DataId": {
     "type": "string"
    },
    "Negated": {
     "type": "boolean"
    },
    "Type": {
     "type": "string"
    }
   },
   "required": [
    "Type",
    "DataId",
    "Negated"
   ],
   "type": "object"
  }
 },
 "lifecycle": {
  "status": "sunset"
 },
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "Id": {
   "type": "string"
  },
  "MetricName": {
   "type": "string"
  },
  "Name": {
   "type": "string"
  },
  "Predicates": {
   "items": {
    "$ref": "#/definitions/Predicate"
   },
   "type": "array",
   "uniqueItems": false
  }
 },
 "readOnlyProperties": [
  "/properties/Id"
 ],
 "required": [
  "MetricName",
  "Name"
 ],
 "typeName": "AWS::WAFRegional::Rule"
}
