{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-get-investigation-response-schema.json",
  "title": "GetInvestigationResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-investigation-api-openapi.yml#/components/schemas/GetInvestigationResponse",
  "type": "object",
  "properties": {
    "Investigation": {
      "$ref": "#/$defs/Investigation"
    }
  },
  "required": [
    "Investigation"
  ],
  "$defs": {
    "CloudDetails": {
      "type": "object",
      "properties": {
        "Provider": {
          "type": "string",
          "enum": [
            "AWS"
          ],
          "description": "The cloud provider. Currently, only AWS is supported."
        },
        "Region": {
          "type": "string",
          "description": "The Amazon Web Services Region in which the investigated resource resides."
        },
        "Account": {
          "type": "string",
          "description": "The Amazon Web Services account ID of the investigated resource."
        }
      },
      "required": [
        "Provider",
        "Region",
        "Account"
      ]
    },
    "Investigation": {
      "type": "object",
      "properties": {
        "InvestigationId": {
          "type": "string",
          "description": "The unique identifier of the investigation."
        },
        "Status": {
          "type": "string",
          "enum": [
            "RUNNING",
            "COMPLETED",
            "FAILED"
          ],
          "description": "The current status of the investigation. Possible values are RUNNING, COMPLETED, and FAILED."
        },
        "TriggerPrompt": {
          "type": "string",
          "description": "The natural-language prompt that initiated this investigation."
        },
        "TriggeredBy": {
          "type": "string",
          "description": "The account that initiated the investigation."
        },
        "Metadata": {
          "$ref": "#/$defs/InvestigationMetadata"
        },
        "Cloud": {
          "$ref": "#/$defs/CloudDetails"
        },
        "RiskLevel": {
          "type": "string",
          "enum": [
            "Info",
            "Low",
            "Medium",
            "High",
            "Critical"
          ],
          "description": "The assessed risk level of the investigated threat. Possible values are Info, Low, Medium, High, and Critical."
        },
        "Risk": {
          "type": "string",
          "description": "A human-readable description of the assessed risk."
        },
        "Confidence": {
          "type": "string",
          "enum": [
            "Unknown",
            "Low",
            "Medium",
            "High"
          ],
          "description": "The confidence level of the investigation's assessment. Possible values are Unknown, Low, Medium, and High."
        },
        "Summary": {
          "type": "string",
          "description": "A structured summary of the investigation findings, including affected resources, threat assessment, and recommended remediation steps."
        },
        "StartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp at which the investigation started."
        },
        "EndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp at which the investigation completed."
        },
        "Error": {
          "type": "string",
          "description": "Details about the error if the investigation status is FAILED."
        }
      },
      "required": [
        "InvestigationId",
        "Status",
        "TriggerPrompt",
        "TriggeredBy"
      ]
    },
    "InvestigationMetadata": {
      "type": "object",
      "properties": {
        "Version": {
          "type": "string",
          "description": "The version of the investigation engine that produced the results."
        },
        "Product": {
          "$ref": "#/$defs/Product"
        }
      },
      "required": [
        "Version",
        "Product"
      ]
    },
    "Product": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the product."
        },
        "Feature": {
          "type": "string",
          "description": "The specific feature within the product that produced the investigation."
        }
      },
      "required": [
        "Name"
      ]
    }
  }
}