{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-mediaconnect/json-schema/amazon-mediaconnect-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-mediaconnect-reservations-api-openapi.yml#/components/schemas/ListReservationsResponse",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "The token that identifies the batch of results that you want to see. For example, you submit a ListReservations request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListReservations request a second time and specify the NextToken value."
    },
    "Reservations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Reservation"
      },
      "description": "A list of all reservations that have been purchased by this account in the current Amazon Web Services Region."
    }
  },
  "$defs": {
    "Reservation": {
      "type": "object",
      "properties": {
        "CurrencyCode": {
          "type": "string",
          "description": "The type of currency that is used for billing. The currencyCode used for your reservation is US dollars."
        },
        "Duration": {
          "type": "integer",
          "description": "The length of time that this reservation is active. MediaConnect defines this value in the offering."
        },
        "DurationUnits": {
          "type": "string",
          "enum": [
            "MONTHS"
          ],
          "description": "The unit of measurement for the duration of the reservation. MediaConnect defines this value in the offering."
        },
        "End": {
          "type": "string",
          "description": "The day and time that this reservation expires. This value is calculated based on the start date and time that you set and the offering's duration."
        },
        "OfferingArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that MediaConnect assigns to the offering."
        },
        "OfferingDescription": {
          "type": "string",
          "description": "A description of the offering. MediaConnect defines this value in the offering."
        },
        "PricePerUnit": {
          "type": "string",
          "description": "The cost of a single unit. This value, in combination with priceUnits, makes up the rate. MediaConnect defines this value in the offering."
        },
        "PriceUnits": {
          "type": "string",
          "enum": [
            "HOURLY"
          ],
          "description": "The unit of measurement that is used for billing. This value, in combination with pricePerUnit, makes up the rate. MediaConnect defines this value in the offering."
        },
        "ReservationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that MediaConnect assigns to the reservation when you purchase an offering."
        },
        "ReservationName": {
          "type": "string",
          "description": "The name that you assigned to the reservation when you purchased the offering."
        },
        "ReservationState": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "EXPIRED",
            "PROCESSING",
            "CANCELED"
          ],
          "description": "The status of your reservation."
        },
        "ResourceSpecification": {
          "$ref": "#/$defs/ResourceSpecification"
        },
        "Start": {
          "type": "string",
          "description": "The day and time that the reservation becomes active. You set this value when you purchase the offering."
        }
      },
      "required": [
        "CurrencyCode",
        "Duration",
        "DurationUnits",
        "End",
        "OfferingArn",
        "OfferingDescription",
        "PricePerUnit",
        "PriceUnits",
        "ReservationArn",
        "ReservationName",
        "ReservationState",
        "ResourceSpecification",
        "Start"
      ]
    },
    "ResourceSpecification": {
      "type": "object",
      "properties": {
        "ReservedBitrate": {
          "type": "integer",
          "description": "The amount of outbound bandwidth that is discounted in the offering."
        },
        "ResourceType": {
          "type": "string",
          "enum": [
            "Mbps_Outbound_Bandwidth"
          ],
          "description": "The type of resource and the unit that is being billed for."
        }
      },
      "required": [
        "ResourceType"
      ]
    }
  }
}