{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-incident-manager/json-schema/amazon-incident-manager-batch-get-incident-findings-output-schema.json",
  "title": "BatchGetIncidentFindingsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-incident-manager-operations-api-openapi.yml#/components/schemas/BatchGetIncidentFindingsOutput",
  "type": "object",
  "properties": {
    "findings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Finding"
      },
      "description": "Information about the requested findings."
    },
    "errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/BatchGetIncidentFindingsError"
      },
      "description": "A list of errors encountered during the operation."
    }
  },
  "required": [
    "findings",
    "errors"
  ],
  "$defs": {
    "BatchGetIncidentFindingsError": {
      "type": "object",
      "properties": {
        "findingId": {
          "type": "string",
          "description": "The ID of a specified finding for which an error was returned for a BatchGetIncidentFindings operation."
        },
        "code": {
          "type": "string",
          "description": "The code associated with an error that was returned for a BatchGetIncidentFindings operation."
        },
        "message": {
          "type": "string",
          "description": "The description for an error that was returned for a BatchGetIncidentFindings operation."
        }
      },
      "required": [
        "findingId",
        "code",
        "message"
      ]
    },
    "CloudFormationStackUpdate": {
      "type": "object",
      "properties": {
        "startTime": {
          "type": "string",
          "description": "The timestamp for when the CloudFormation stack creation or update began."
        },
        "endTime": {
          "type": "string",
          "description": "The timestamp for when the CloudFormation stack creation or update ended. Not reported for deployments that are still in progress."
        },
        "stackArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the CloudFormation stack involved in the update."
        }
      },
      "required": [
        "startTime",
        "stackArn"
      ]
    },
    "CodeDeployDeployment": {
      "type": "object",
      "properties": {
        "startTime": {
          "type": "string",
          "description": "The timestamp for when the CodeDeploy deployment began."
        },
        "endTime": {
          "type": "string",
          "description": "The timestamp for when the CodeDeploy deployment ended. Not reported for deployments that are still in progress."
        },
        "deploymentGroupArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the CodeDeploy deployment group associated with the deployment."
        },
        "deploymentId": {
          "type": "string",
          "description": "The ID of the CodeDeploy deployment."
        }
      },
      "required": [
        "startTime",
        "deploymentGroupArn",
        "deploymentId"
      ]
    },
    "Finding": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The ID assigned to the finding."
        },
        "creationTime": {
          "type": "string",
          "description": "The timestamp for when a finding was created."
        },
        "lastModifiedTime": {
          "type": "string",
          "description": "The timestamp for when the finding was most recently updated with additional information."
        },
        "details": {
          "$ref": "#/$defs/FindingDetails"
        }
      },
      "required": [
        "id",
        "creationTime",
        "lastModifiedTime"
      ]
    },
    "FindingDetails": {
      "type": "object",
      "properties": {
        "codeDeployDeployment": {
          "$ref": "#/$defs/CodeDeployDeployment"
        },
        "cloudFormationStackUpdate": {
          "$ref": "#/$defs/CloudFormationStackUpdate"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}