{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-fraud-detector/json-schema/amazon-fraud-detector-update-rule-version-request-schema.json",
  "title": "UpdateRuleVersionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-fraud-detector-operations-api-openapi.yml#/components/schemas/UpdateRuleVersionRequest",
  "type": "object",
  "properties": {
    "rule": {
      "$ref": "#/$defs/Rule"
    },
    "description": {
      "type": "string",
      "description": "The description."
    },
    "expression": {
      "type": "string",
      "description": "The rule expression."
    },
    "language": {
      "type": "string",
      "enum": [
        "DETECTORPL"
      ],
      "description": "The language."
    },
    "outcomes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The outcomes."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "The tags to assign to the rule version."
    }
  },
  "required": [
    "rule",
    "expression",
    "language",
    "outcomes"
  ],
  "$defs": {
    "Rule": {
      "type": "object",
      "properties": {
        "detectorId": {
          "type": "string",
          "description": "The detector for which the rule is associated."
        },
        "ruleId": {
          "type": "string",
          "description": "The rule ID."
        },
        "ruleVersion": {
          "type": "string",
          "description": "The rule version."
        }
      },
      "required": [
        "detectorId",
        "ruleId",
        "ruleVersion"
      ]
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "A tag key."
        },
        "value": {
          "type": "string",
          "description": "A value assigned to a tag key."
        }
      },
      "required": [
        "key",
        "value"
      ]
    }
  }
}