{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-athena/json-schema/amazon-athena-list-capacity-reservations-output-schema.json",
  "title": "ListCapacityReservationsOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-athena-capacity-reservation-api-openapi.yml#/components/schemas/ListCapacityReservationsOutput",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call."
    },
    "CapacityReservations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CapacityReservation"
      },
      "description": "The capacity reservations for the current account."
    }
  },
  "required": [
    "CapacityReservations"
  ],
  "$defs": {
    "CapacityAllocation": {
      "type": "object",
      "properties": {
        "Status": {
          "type": "string",
          "enum": [
            "PENDING",
            "SUCCEEDED",
            "FAILED"
          ],
          "description": "The status of the capacity allocation."
        },
        "StatusMessage": {
          "type": "string",
          "description": "The status message of the capacity allocation."
        },
        "RequestTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time when the capacity allocation was requested."
        },
        "RequestCompletionTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time when the capacity allocation request was completed."
        }
      },
      "required": [
        "Status",
        "RequestTime"
      ]
    },
    "CapacityReservation": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the capacity reservation."
        },
        "Status": {
          "type": "string",
          "enum": [
            "PENDING",
            "ACTIVE",
            "CANCELLING",
            "CANCELLED",
            "FAILED",
            "UPDATE_PENDING"
          ],
          "description": "The status of the capacity reservation."
        },
        "TargetDpus": {
          "type": "integer",
          "description": "The number of data processing units requested."
        },
        "AllocatedDpus": {
          "type": "integer",
          "description": "The number of data processing units currently allocated."
        },
        "LastAllocation": {
          "$ref": "#/$defs/CapacityAllocation"
        },
        "LastSuccessfulAllocationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time of the most recent capacity allocation that succeeded."
        },
        "CreationTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time in UTC epoch millis when the capacity reservation was created."
        }
      },
      "required": [
        "Name",
        "Status",
        "TargetDpus",
        "AllocatedDpus",
        "CreationTime"
      ]
    }
  }
}