{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-managed-prometheus/json-schema/amazon-managed-prometheus-create-anomaly-detector-response-schema.json",
  "title": "CreateAnomalyDetectorResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-managed-prometheus-anomalydetectors-api-openapi.yml#/components/schemas/CreateAnomalyDetectorResponse",
  "type": "object",
  "properties": {
    "anomalyDetectorId": {
      "type": "string",
      "description": "The unique identifier of the created anomaly detector."
    },
    "arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the created anomaly detector."
    },
    "status": {
      "$ref": "#/$defs/AnomalyDetectorStatus"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags applied to the created anomaly detector."
    }
  },
  "required": [
    "anomalyDetectorId",
    "arn",
    "status"
  ],
  "$defs": {
    "AnomalyDetectorStatus": {
      "type": "object",
      "properties": {
        "statusCode": {
          "type": "string",
          "enum": [
            "CREATING",
            "ACTIVE",
            "UPDATING",
            "DELETING",
            "CREATION_FAILED",
            "UPDATE_FAILED",
            "DELETION_FAILED"
          ],
          "description": "The status code of the anomaly detector."
        },
        "statusReason": {
          "type": "string",
          "description": "A description of the current status of the anomaly detector."
        }
      },
      "required": [
        "statusCode"
      ]
    }
  }
}