{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-incident-manager/json-schema/amazon-incident-manager-list-incident-records-output-schema.json",
  "title": "ListIncidentRecordsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-incident-manager-list-incident-records-api-openapi.yml#/components/schemas/ListIncidentRecordsOutput",
  "type": "object",
  "properties": {
    "incidentRecordSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/IncidentRecordSummary"
      },
      "description": "The details of each listed incident record."
    },
    "nextToken": {
      "type": "string",
      "description": "The pagination token to use when requesting the next set of items. If there are no additional items to return, the string is null."
    }
  },
  "required": [
    "incidentRecordSummaries"
  ],
  "$defs": {
    "IncidentRecordSource": {
      "type": "object",
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "The principal that started the incident."
        },
        "invokedBy": {
          "type": "string",
          "description": "The service principal that assumed the role specified in createdBy. If no service principal assumed the role this will be left blank."
        },
        "resourceArn": {
          "type": "string",
          "description": "The resource that caused the incident to be created."
        },
        "source": {
          "type": "string",
          "description": "The service that started the incident. This can be manually created from Incident Manager, automatically created using an Amazon CloudWatch alarm, or Amazon EventBridge event."
        }
      },
      "required": [
        "createdBy",
        "source"
      ]
    },
    "IncidentRecordSummary": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the incident."
        },
        "title": {
          "type": "string",
          "description": "The title of the incident. This value is either provided by the response plan or overwritten on creation."
        },
        "status": {
          "type": "string",
          "description": "The current status of the incident."
        },
        "impact": {
          "type": "integer",
          "description": "Defines the impact to customers and applications."
        },
        "creationTime": {
          "type": "string",
          "description": "The timestamp for when the incident was created."
        },
        "resolvedTime": {
          "type": "string",
          "description": "The timestamp for when the incident was resolved."
        },
        "incidentRecordSource": {
          "$ref": "#/$defs/IncidentRecordSource"
        }
      },
      "required": [
        "arn",
        "title",
        "status",
        "impact",
        "creationTime",
        "incidentRecordSource"
      ]
    }
  }
}