{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-deadline-cloud/json-schema/amazon-deadline-cloud-list-volumes-response-schema.json",
  "title": "ListVolumesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-deadline-cloud-volumes-api-openapi.yml#/components/schemas/ListVolumesResponse",
  "type": "object",
  "properties": {
    "volumes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/VolumeSummary"
      },
      "description": "The volumes on the list."
    },
    "nextToken": {
      "type": "string",
      "description": "If Deadline Cloud returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error."
    }
  },
  "required": [
    "volumes"
  ],
  "$defs": {
    "VolumeSummary": {
      "type": "object",
      "properties": {
        "volumeId": {
          "type": "string",
          "description": "The volume ID."
        },
        "farmId": {
          "type": "string",
          "description": "The farm ID of the farm that contains the fleet."
        },
        "fleetId": {
          "type": "string",
          "description": "The fleet ID of the fleet that contains the volume."
        },
        "state": {
          "type": "string",
          "enum": [
            "PENDING_CREATION",
            "PENDING_ATTACHMENT",
            "IN_USE",
            "AVAILABLE",
            "PENDING_DELETION"
          ],
          "description": "The state of the volume."
        },
        "sizeGiB": {
          "type": "integer",
          "description": "The volume size in GiB."
        },
        "availabilityZoneId": {
          "type": "string",
          "description": "The Availability Zone ID of the volume."
        },
        "attachedWorkerId": {
          "type": "string",
          "description": "The worker ID of the worker the volume is attached to."
        }
      },
      "required": [
        "volumeId",
        "farmId",
        "fleetId",
        "state",
        "sizeGiB",
        "availabilityZoneId"
      ]
    }
  }
}