{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-resilience-hub/json-schema/amazon-resilience-hub-get-dependency-insights-response-schema.json",
  "title": "GetDependencyInsightsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-resilience-hub-operations-api-openapi.yml#/components/schemas/GetDependencyInsightsResponse",
  "type": "object",
  "properties": {
    "overview": {
      "type": "string",
      "description": "A summary of the dependency insights for the service. This field is not returned until the status is COMPLETED."
    },
    "insights": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DependencyInsight"
      },
      "description": "The list of dependency insights generated for the service. This field is not returned until the status is COMPLETED."
    },
    "status": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "COMPLETED",
        "FAILED"
      ],
      "description": "The status of the dependency insights generation. Valid values: IN_PROGRESS - Insights generation is in progress. COMPLETED - Insights generation completed successfully. FAILED - Insights generation failed. See errorCode and errorMessage for details."
    },
    "createdAt": {
      "type": "string",
      "description": "The timestamp when the dependency insights were generated."
    },
    "errorCode": {
      "type": "string",
      "enum": [
        "INSUFFICIENT_DATA",
        "LLM_GENERATION_FAILED",
        "INTERNAL_ERROR"
      ],
      "description": "The error code returned when insights generation failed. Valid values: INSUFFICIENT_DATA - There was not enough dependency data to generate insights. LLM_GENERATION_FAILED - The insights could not be generated. INTERNAL_ERROR - An internal error occurred while generating insights."
    },
    "errorMessage": {
      "type": "string",
      "description": "A message describing why insights generation failed."
    }
  },
  "required": [
    "status"
  ],
  "$defs": {
    "DependencyInsight": {
      "type": "object",
      "properties": {
        "category": {
          "type": "string",
          "enum": [
            "CROSS_REGION",
            "NEW_DEPENDENCY",
            "THIRD_PARTY",
            "UNEVEN_USAGE",
            "AWS_SERVICE"
          ],
          "description": "The category of the insight. Valid values: CROSS_REGION - The insight relates to dependencies used across multiple Regions. NEW_DEPENDENCY - The insight relates to a recently detected dependency. THIRD_PARTY - The insight relates to a third-party dependency. UNEVEN_USAGE - The insight relates to a dependency with uneven usage across the service. AWS_SERVICE - The insight relates to a dependency on an Amazon Web Services service."
        },
        "description": {
          "type": "string",
          "description": "A human-readable explanation of the insight, describing the dependency behavior or condition that was detected."
        }
      },
      "required": [
        "category",
        "description"
      ]
    }
  }
}