{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-fraud-detector/json-schema/amazon-fraud-detector-update-model-version-request-schema.json",
  "title": "UpdateModelVersionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-fraud-detector-model-version-api-openapi.yml#/components/schemas/UpdateModelVersionRequest",
  "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."
    },
    "majorVersionNumber": {
      "type": "string",
      "description": "The major version number."
    },
    "externalEventsDetail": {
      "$ref": "#/$defs/ExternalEventsDetail"
    },
    "ingestedEventsDetail": {
      "$ref": "#/$defs/IngestedEventsDetail"
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A collection of key and value pairs."
    }
  },
  "required": [
    "modelId",
    "modelType",
    "majorVersionNumber"
  ],
  "$defs": {
    "ExternalEventsDetail": {
      "type": "object",
      "properties": {
        "dataLocation": {
          "type": "string",
          "description": "The Amazon S3 bucket location for the data."
        },
        "dataAccessRoleArn": {
          "type": "string",
          "description": "The ARN of the role that provides Amazon Fraud Detector access to the data location."
        }
      },
      "required": [
        "dataLocation",
        "dataAccessRoleArn"
      ]
    },
    "IngestedEventsDetail": {
      "type": "object",
      "properties": {
        "ingestedEventsTimeWindow": {
          "$ref": "#/$defs/IngestedEventsTimeWindow"
        }
      },
      "required": [
        "ingestedEventsTimeWindow"
      ]
    },
    "IngestedEventsTimeWindow": {
      "type": "object",
      "properties": {
        "startTime": {
          "type": "string",
          "description": "Timestamp of the first ingensted event."
        },
        "endTime": {
          "type": "string",
          "description": "Timestamp of the final ingested event."
        }
      },
      "required": [
        "startTime",
        "endTime"
      ]
    },
    "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"
      ]
    }
  }
}