{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-fraud-detector/json-schema/amazon-fraud-detector-get-detector-version-result-schema.json",
  "title": "GetDetectorVersionResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-fraud-detector-detector-version-api-openapi.yml#/components/schemas/GetDetectorVersionResult",
  "type": "object",
  "properties": {
    "detectorId": {
      "type": "string",
      "description": "The detector ID."
    },
    "detectorVersionId": {
      "type": "string",
      "description": "The detector version ID."
    },
    "description": {
      "type": "string",
      "description": "The detector version description."
    },
    "externalModelEndpoints": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The Amazon SageMaker model endpoints included in the detector version."
    },
    "modelVersions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ModelVersion"
      },
      "description": "The model versions included in the detector version."
    },
    "rules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Rule"
      },
      "description": "The rules included in the detector version."
    },
    "status": {
      "type": "string",
      "enum": [
        "DRAFT",
        "ACTIVE",
        "INACTIVE"
      ],
      "description": "The status of the detector version."
    },
    "lastUpdatedTime": {
      "type": "string",
      "description": "The timestamp when the detector version was last updated."
    },
    "createdTime": {
      "type": "string",
      "description": "The timestamp when the detector version was created."
    },
    "ruleExecutionMode": {
      "type": "string",
      "enum": [
        "ALL_MATCHED",
        "FIRST_MATCHED"
      ],
      "description": "The execution mode of the rule in the dectector FIRST_MATCHED indicates that Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule. ALL_MATCHED indicates that Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft status."
    },
    "arn": {
      "type": "string",
      "description": "The detector version ARN."
    }
  },
  "$defs": {
    "ModelVersion": {
      "type": "object",
      "properties": {
        "modelId": {
          "type": "string",
          "description": "The model ID."
        },
        "modelType": {
          "type": "string",
          "enum": [
            "ONLINE_FRAUD_INSIGHTS",
            "TRANSACTION_FRAUD_INSIGHTS",
            "ACCOUNT_TAKEOVER_INSIGHTS"
          ],
          "description": "The model type."
        },
        "modelVersionNumber": {
          "type": "string",
          "description": "The model version number."
        },
        "arn": {
          "type": "string",
          "description": "The model version ARN."
        }
      },
      "required": [
        "modelId",
        "modelType",
        "modelVersionNumber"
      ]
    },
    "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"
      ]
    }
  }
}