{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-list-reservations-response-schema.json",
  "title": "ListReservationsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-reservation-api-openapi.yml#/components/schemas/ListReservationsResponse",
  "type": "object",
  "properties": {
    "reservationsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Reservation"
      },
      "description": "The serverless reservations returned by the request."
    },
    "nextToken": {
      "type": "string",
      "description": "The token to use when requesting the next set of items."
    }
  },
  "required": [
    "reservationsList"
  ],
  "$defs": {
    "Reservation": {
      "type": "object",
      "properties": {
        "reservationId": {
          "type": "string",
          "description": "The identifier that uniquely identifies the serverless reservation."
        },
        "reservationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that uniquely identifies the serverless reservation."
        },
        "startDate": {
          "type": "string",
          "description": "The start date for the serverless reservation. This is the date you created the reservation."
        },
        "endDate": {
          "type": "string",
          "description": "The end date for the serverless reservation. This date is one year after the start date that you specify."
        },
        "capacity": {
          "type": "integer",
          "description": "The number of Redshift Processing Units (RPUs) to reserve."
        },
        "offering": {
          "$ref": "#/$defs/ReservationOffering"
        },
        "status": {
          "type": "string",
          "description": "The status of the reservation. Possible values include the following: payment-pending active payment-failed retired"
        }
      }
    },
    "ReservationOffering": {
      "type": "object",
      "properties": {
        "offeringId": {
          "type": "string",
          "description": "The offering identifier."
        },
        "duration": {
          "type": "integer",
          "description": "The duration, in seconds, for which the reservation reserves the RPUs."
        },
        "upfrontCharge": {
          "type": "number",
          "description": "The up-front price you are charged for the reservation."
        },
        "hourlyCharge": {
          "type": "number",
          "description": "The rate you are charged for each hour the reservation is active."
        },
        "currencyCode": {
          "type": "string",
          "description": "The currency code for the offering."
        },
        "offeringType": {
          "type": "string",
          "description": "Determines the payment schedule for the reservation."
        }
      }
    }
  }
}