{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ground-station/json-schema/amazon-ground-station-list-ground-station-reservations-response-schema.json",
  "title": "ListGroundStationReservationsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ground-station-operations-api-openapi.yml#/components/schemas/ListGroundStationReservationsResponse",
  "type": "object",
  "properties": {
    "reservationList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GroundStationReservationListItem"
      },
      "description": "List of ground station reservations."
    },
    "nextToken": {
      "type": "string",
      "description": "Next token to be used in a subsequent ListGroundStationReservations call to retrieve the next page of results."
    }
  },
  "required": [
    "reservationList"
  ],
  "$defs": {
    "ContactReservationDetails": {
      "type": "object",
      "properties": {
        "contactId": {
          "type": "string",
          "description": "UUID of a contact."
        }
      }
    },
    "GroundStationReservationListItem": {
      "type": "object",
      "properties": {
        "reservationType": {
          "type": "string",
          "enum": [
            "MAINTENANCE",
            "CONTACT"
          ],
          "description": "Type of a ground station reservation."
        },
        "groundStationId": {
          "type": "string",
          "description": "ID of a ground station."
        },
        "antennaName": {
          "type": "string",
          "description": "Name of an antenna."
        },
        "startTime": {
          "type": "string",
          "description": "Start time of a ground station reservation in UTC."
        },
        "endTime": {
          "type": "string",
          "description": "End time of a ground station reservation in UTC."
        },
        "reservationDetails": {
          "$ref": "#/$defs/ReservationDetails"
        }
      },
      "required": [
        "reservationType",
        "groundStationId",
        "antennaName",
        "startTime",
        "endTime",
        "reservationDetails"
      ]
    },
    "MaintenanceReservationDetails": {
      "type": "object",
      "properties": {
        "maintenanceType": {
          "type": "string",
          "enum": [
            "PLANNED",
            "UNPLANNED"
          ],
          "description": "Type of maintenance."
        }
      },
      "required": [
        "maintenanceType"
      ]
    },
    "ReservationDetails": {
      "type": "object",
      "properties": {
        "maintenance": {
          "$ref": "#/$defs/MaintenanceReservationDetails"
        },
        "contact": {
          "$ref": "#/$defs/ContactReservationDetails"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}